Skip to content

JWTA-8 Add validate token feature#16

Open
djeday wants to merge 1 commit intodevfrom
JWTA-8
Open

JWTA-8 Add validate token feature#16
djeday wants to merge 1 commit intodevfrom
JWTA-8

Conversation

@djeday
Copy link
Owner

@djeday djeday commented Apr 27, 2021

No description provided.

@djeday djeday linked an issue Apr 27, 2021 that may be closed by this pull request
public function validate(): bool {
return true;
public function validate(string $jwt): object {
return JWT::decode($jwt, $this->secretKey, ['HS256']);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'HS256' In constantes

@@ -18,7 +18,7 @@ public function __construct(string $jwtSecret)
"iss" => 'http://localhost:8080', // издатель токена

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe http://localhost:8080 to constantes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JWTA-8 Add validate token feature

2 participants