JWTFactory
in package
implements
ITokenFactory
Interfaces, Classes, Traits and Enums
Table of Contents
- $domain_identity : string
- $settings : object
- __construct() : mixed
- decode() : stdClass
- Decodes recieved token
- generateToken() : string
- Creates token for specific $user
Properties
$domain_identity
private
string
$domain_identity
$settings
private
object
$settings
Methods
__construct()
public
__construct(SettingsInterface $settings) : mixed
Parameters
- $settings : SettingsInterface
Return values
mixed —decode()
Decodes recieved token
public
decode(string $userToken) : stdClass
Parameters
- $userToken : string
Return values
stdClass —generateToken()
Creates token for specific $user
public
generateToken(User $user) : string
Parameters
- $user : User