public
static
|
build(KeyAbstract|string $key, array|Traversable $payload, int $expirationOffset = 0): string
Create a JSON Web Token string
Create a JSON Web Token string
Parameters
$key |
the key to use to sign the token, or name of key to build
|
$payload |
traversable set of claims, claim => value
|
$expirationOffset |
seconds from now that token will expire. If not specified,
an "exp" claim will not be added or updated
|
Returns
a token string returned from JsonWebToken::create()
Throws
|
#
|