Méthode | Description | |
---|---|---|
__construct ( integer $leeway = null ) | ||
createToken ( array $payload, string $secret, string $algorithm = 'HS256' ) : string | Create a new token with the provided payload | |
decodeToken ( string $token, string $secret, string $algorithm = 'HS256' ) : array | Decode the provided token into an array | |
validateToken ( string $token, string $secret, string $algorithm = 'HS256' ) : boolean | Validate that the provided token |
Méthode | Description | |
---|---|---|
convertObjectToArray ( mixed $data ) : array | Recursively convert the provided object to an array |
public __construct ( integer $leeway = null ) | ||
$leeway | integer | for checking timestamps |