Method |
Description |
|
attempt ( array $credentials = [], array $customClaims = [] ) : false | string |
Attempt to authenticate the user and return the token. |
|
authenticate ( mixed $token = false ) : mixed |
Authenticate a user via a token. |
|
fromUser ( mixed $user, array $customClaims = [] ) : string |
Generate a token using the user identifier as the subject claim. |
|
getIdentifier ( ) : string |
Get the identifier. |
|
getPayload ( mixed $token = false ) : Tymon\JWTAuth\Payload |
Get the raw Payload instance. |
|
getToken ( ) : boolean | string |
Get the token. |
|
invalidate ( mixed $token = false ) : boolean |
Invalidate a token (add it to the blacklist). |
|
manager ( ) : Tymon\JWTAuth\JWTManager |
Get the JWTManager instance. |
|
parseToken ( $method = 'bearer', $header = 'authorization', string $query = 'token' ) : JWTAuth |
Parse the token from the request. |
|
refresh ( mixed $token = false ) : string |
Refresh an expired token. |
|
setIdentifier ( string $identifier ) |
Set the identifier. |
|
setRequest ( Request $request ) |
Set the request instance. |
|
setToken ( string $token ) |
Set the token. |
|
toUser ( boolean | string $token = false ) : mixed |
Find a user using the user identifier in the subject claim. |
|