fix algorithm

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

View File

@@ -77,6 +77,6 @@ class ApiTokenCookieFactory
'sub' => $userId,
'csrf' => $csrfToken,
'expiry' => $expiration->getTimestamp(),
], $this->encrypter->getKey(), 'RS256');
], $this->encrypter->getKey(), 'HS256');
}
}

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'
)
);
}

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());