JsonWebTokenAuthenticator
in package
implements
JsonWebTokenAuthenticator
Class JsonWebTokenAuthenticator
Interfaces, Classes and Traits
- JsonWebTokenAuthenticator
- Interface JsonWebTokenAuthenticator
Table of Contents
- $repository : JsonWebTokenRepository
- __construct() : mixed
- JsonWebTokenAuthenticator constructor.
- authenticate() : UserId
- Authenticates based on the provided JSON web token and returns his ID.
Properties
$repository
private
JsonWebTokenRepository
$repository
Methods
__construct()
JsonWebTokenAuthenticator constructor.
public
__construct(JsonWebTokenRepository $repository) : mixed
Parameters
- $repository : JsonWebTokenRepository
Return values
mixed —authenticate()
Authenticates based on the provided JSON web token and returns his ID.
public
authenticate(string $token) : UserId
Parameters
- $token : string