Skip to content

ViewerTokenOptions

Defined in: src/portal.ts:83

Options for createViewerToken.

Property Type Description Defined in
allow? LinksAction[] Actions the token grants. Unset = the panel’s portal.allow, then DEFAULT_VIEWER_ACTIONS. Only VIEWER_GRANTABLE_ACTIONS take effect. src/portal.ts:92
expiresIn? LinksDuration Token lifetime. Default "1d". src/portal.ts:94
links? string[] Restrict the token to these link ids. Unset = every link of the tenant. src/portal.ts:87
tenant string The tenant the token grants access to. src/portal.ts:85