×

Sign JSON Web Token

iOS 14 +

Notes

Sign a JSON Web Token with a private key.

Syntax

signJWT(key: <#Variable#>, algorithm: <#Enumeration (JWTAlgorithm)#>, issuer: <#String (Allows Variables)#>, keyID: <#String (Allows Variables)#>, audience: <#Array#>, notBefore: <#Time#>, expiration: <#Time#>, subject: <#String (Allows Variables)#>, jwtID: <#String (Allows Variables)#>)

Example

signJWT(key: ShortcutInput, algorithm: es256, issuer: "Me", keyID: "123dsa", audience: ["Test", "Test"], notBefore: 10 hours, expiration: 12 hours, subject: ""Generated using GizmoPack!"", jwtID: "13478adsfio13u0hadj")