- Added JsonWebToken encoder

This commit is contained in:
Dave Mc Nicoll committed 2024-05-31 19:00:04 +00:00
1 parent c4e4db7a45
commit e63ea439d6
3 files changed
+43 -5

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ class BearerMethod implements MethodInterface
public function autodetectTokenType() : BearerTokenTypeEnum
{
$this->jwt = new JsonWebTokenDecoder($this->token);
$this->jwt = new JsonWebTokenDecoder($this->token, getenv('LEAN_RANDOM'));
if ( $this->jwt->isJWT() ) {
return BearerTokenTypeEnum::JsonWebToken;