1 Commits
3.2.1 ... 3.2.2

Author SHA1 Message Date
1b8aef1f6f fix algorithm
Signed-off-by: envoyr <hello@envoyr.com>
2023-02-20 17:16:48 +01:00
3 changed files with 3 additions and 3 deletions

View File

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