\ManaPHP\TokenScopedJwtInterface

Summary

Methods
Constants
getSecret()
encode()
decode()
verify()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getSecret()

getSecret(string  $scope, boolean  $cache = true) : string

Parameters

string $scope
boolean $cache

Returns

string

encode()

encode(array  $claims, integer  $ttl, string  $scope) : string

Parameters

array $claims
integer $ttl
string $scope

Returns

string

decode()

decode(string  $token, string  $scope, boolean  $verify = true) : array

Parameters

string $token
string $scope
boolean $verify

Returns

array

verify()

verify(string  $token, string  $scope) : void

Parameters

string $token
string $scope