API - XOOPS 2.5.11 Beta 2
By monxoops.fr
TokenFactory Class Reference

Static Public Member Functions

static build ($key, $payload, $expirationOffset=0)
 

Member Function Documentation

◆ build()

static build (   $key,
  $payload,
  $expirationOffset = 0 
)
static

Create a JSON Web Token string

Parameters
KeyAbstract | string$keythe key to use to sign the token, or name of key to build
array | \Traversable$payloadtraversable set of claims, claim => value
int$expirationOffsetseconds from now that token will expire. If not specified, an "exp" claim will not be added or updated
Returns
string a token string returned from JsonWebToken::create()
Exceptions

DomainException

Exceptions

InvalidArgumentException

Exceptions

UnexpectedValueException

Here is the call graph for this function:

The documentation for this class was generated from the following file: