Skip to main content
Not yet released. The packages on this page are not published to npm yet, so the install commands below will not resolve. The documented interface is stable and the code exists; only publication is outstanding. To use KeyStone from a frontend today, call the REST API or the TypeScript SDK, which is published. Contact us if you need early access.

Import

Usage

Parameters

CreateSessionTokenOptions

Available Scopes

Any other value is rejected with 422. A session token is browser-delivered, so settlements:write does not authorize settlement creation, compliance decisions, or instruction cancellation the way it does in your M2M credential - those return 403 SESSION_WRITE_DENIED. See Authentication.

Return Type

Scoped Tokens

Restrict a token to specific settlement IDs for least-privilege access:
The token holder can only access the specified settlements: requests addressing any other settlement return 403 (SESSION_SETTLEMENT_SCOPE_DENIED), and listing endpoints filter to the permitted set. A restricted token also cannot create settlements or use the instructions endpoints, since those resources cannot belong to a list fixed at mint time - mint an unrestricted token for instruction-submitting widgets.