MintTokenRequest

  • userId
    Type: string
    required

    Your end user's id. Becomes the JWT sub.

  • channels
    Type: object · ChannelGrants

    A map of channel id to a list of granted capabilities (for example ["connect", "publish"]). Omit on a token to allow whatever the channel config permits.

    • propertyName
      Type: array string[]
  • claims
    Type: object

    Opaque claims bag; travels with the token and is visible to your config's authorization logic.

    • propertyName
      Type: anything
  • ttl
    Type: string

    Token lifetime. Accepts 1h, 30m, 45s, 2d, or a bare number of seconds. Defaults to one hour.