This SDK documentation is outdated. Please do not refer to it, and instead visit the User Guides section.

Skip to main content
Version: 7.2.X

createJWT(payload, validitySeconds)

Parameters#

  • payload (Optional)

    • type: any
    • Must be a valid JSON
  • validitySeconds (Optional)

    • type: number
    • Must be greater than 0

Returns#

Promise<{
status: "OK",
jwt: string,
} | {
status: "UNSUPPORTED_ALGORITHM_ERROR",
}>
Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI