sign

This block is part of the json web token group and was last modified in core v10.4.28.

sign v10.4.28

Creates and signs a new json web token.

In pins 3 + flow
  • flow
    flow
  • payload required
    object

    the payload to add to the jwt

  • secret required
    value

    the secret or private key to sign the jwt with

  • expires required
    date

    when the jwt should expire

    Default 4 hours

Out pins 3 + flow
  • flow
    flow
  • success
    condition
  • error
    value
  • token
    value
jwt

A typical wiring for sign: a function trigger starts the flow; new object feeds the payload pin; value feeds the secret pin; date now feeds the expiresin pin; the flow out pin feeds debug.

Studio canvas example for the sign block: typical wiring for sign.

Version history

Introduced in v10.4.28.


Back to json web token Return to the main group to view all sub-groups Back to json web token Return to the group to view all blocks within this group