Skip to content

MintTokenSource

MintTokenSource = string | (() => string | null | undefined | Promise<string | null | undefined>)

Defined in: fragments.ts:100

A signed mint token, or a function producing one.

The token is minted by the CUSTOMER’S BACKEND (POST /fragments/mint-token with an org-pinned st_ key) and is bound to one (org, ctxhash, schemahash) for 300 seconds. The browser only echoes it. The callback form exists because of that TTL: a page open longer than five minutes needs a fresh token at mint time, not the one that shipped with the HTML.