Action ReferencesCreateJWTTokenAction
Action References

CreateJWTTokenAction

CreateJWTTokenAction

Purpose Create a signed JWT (HMAC) from a payload; store in context or response.

When to use it

  • After auth flow or post-create (invite tokens, magic links)
  • Before response to hand out temporary access

Key fields

FieldTypeDescription
JWTKeyMScriptSecret key (usually env).
payloadMScriptObject to sign (claims/scopes).
contextPropertyNameStringWhere to store token string.

Example

{
  "id": "a280-create-jwt",
  "name": "createInvitationToken",
  "JWTKey": "process.env.INVITE_JWT_KEY",
  "payload": "{ inviteId: this.invite.id, exp: NOW()+3600 }",
  "contextPropertyName": "inviteToken",
  "writeToResponse": true
}
Was this page helpful?
Built with Documentation.AI

Last updated Jan 3, 2026