Definition
createExternalJwt(config)
asyncCreates a JWT with the role "external" to use with the various extension APIs.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
config | ExternalJwtConfig | none | The configuration of the JWT to generate. | |
config.additionalData | Record<string, unknown> | none | none | |
config.ownerId | string | none | The user ID of the extension's owner. | |
config.secret | string | none | A valid extension secret to sign the JWT with. | |
config.ttl | number | none | The time the JWT should be valid for, in seconds. Defaults to 1 minute (60 seconds). |
Return type: string