- Added JsonWebToken encoder
This commit is contained in:
1 parent
c4e4db7a45
commit
e63ea439d6
3 files changed
+43
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user