Метод | Описание | |
---|---|---|
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 |