|
static | build ($key, $payload, $expirationOffset=0) |
|
◆ build()
static build |
( |
|
$key, |
|
|
|
$payload, |
|
|
|
$expirationOffset = 0 |
|
) |
| |
|
static |
Create a JSON Web Token string
- Paramètres
-
KeyAbstract | string | $key | the key to use to sign the token, or name of key to build |
array | \Traversable | $payload | traversable set of claims, claim => value |
int | $expirationOffset | seconds from now that token will expire. If not specified, an "exp" claim will not be added or updated |
- Renvoie
- string a token string returned from JsonWebToken::create()
- Exceptions
-
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/xoops/xmf/src/Jwt/TokenFactory.php