mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-13 13:35:52 +00:00
@@ -77,6 +77,6 @@ class ApiTokenCookieFactory
|
||||
'sub' => $userId,
|
||||
'csrf' => $csrfToken,
|
||||
'expiry' => $expiration->getTimestamp(),
|
||||
], $this->encrypter->getKey(), 'RS256');
|
||||
], $this->encrypter->getKey(), 'HS256');
|
||||
}
|
||||
}
|
||||
@@ -184,7 +184,7 @@ class TokenGuard
|
||||
CookieValuePrefix::remove($this->encrypter->decrypt($request->cookie(BitinflowAccounts::cookie()), BitinflowAccounts::$unserializesCookies)),
|
||||
new Key(
|
||||
$this->encrypter->getKey(),
|
||||
'RS256'
|
||||
'HS256'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class JwtParser
|
||||
try {
|
||||
return JWT::decode(
|
||||
$request->bearerToken(),
|
||||
new Key($this->getOauthPublicKey(),'RS256')
|
||||
new Key($this->getOauthPublicKey(), 'RS256')
|
||||
);
|
||||
} catch (Throwable $exception) {
|
||||
throw (new AuthenticationException());
|
||||
|
||||
Reference in New Issue
Block a user