Jwtcreate()

Create JWT tokens. See <a href="https://jwt.io/" target="_blank">jwt.io/</a> for information about JWT's.

Usage

BOOLEAN = Jwtcreate( private, secret, issuer, algorithm, subject, audience, expiration )
Argument Summary
private A struct representing the private JWT claims
secret The secret to use when signing and verifying the JWT token
issuer The issuer information (iss) [optional]
algorithm Which algorithm to use, available ones are HMAC256, HMAC384, HMAC512. Defaults to HMAC256 [optional]
subject Subject (sub) [optional]
audience Audience (aud) [optional]
expiration Expiration (exp), seconds since epoch. [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

Jwtcreate(
   private=?, 
   secret=?, 
   issuer=?, 
   algorithm=?, 
   subject=?, 
   audience=?, 
   expiration=?
);

Supports passing parameters as a structure using ArgumentCollection:

Jwtcreate( ArgumentCollection={
   private : ?, 
   secret : ?, 
   issuer : ?, 
   algorithm : ?, 
   subject : ?, 
   audience : ?, 
   expiration : ?
} );