fix algorithm

Signed-off-by: envoyr <hello@envoyr.com>
This commit is contained in:
envoyr committed 2023-02-20 17:16:48 +01:00
1 parent f17519743e
commit 1b8aef1f6f
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -77,6 +77,6 @@ class ApiTokenCookieFactory
'sub' => $userId,
'csrf' => $csrfToken,
'expiry' => $expiration->getTimestamp(),
], $this->encrypter->getKey(), 'RS256');
], $this->encrypter->getKey(), 'HS256');
}
}
+1 -1
View File
@@ -184,7 +184,7 @@ class TokenGuard
CookieValuePrefix::remove($this->encrypter->decrypt($request->cookie(BitinflowAccounts::cookie()), BitinflowAccounts::$unserializesCookies)),
new Key(
$this->encrypter->getKey(),
'RS256'
'HS256'
)
);
}
+1 -1
View File
@@ -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());