Skip to main content

mintAppToken

Mint a short-lived, app-scoped gameplay token for the calling user (native/direct path; no browser redirect). Requires an identity SESSION token (app tokens cannot mint). Free/open apps auto-grant access; paid apps require an existing entitlement (else FORBIDDEN). A Crowded Kingdoms account created on or after 2026-11-11 must confirm its email first (EMAIL_CONFIRMATION_REQUIRED; resendConfirmationEmail sends another link). Side effect: may create an app_user_access row on the app's free default tier.

mintAppToken(
input: MintAppTokenInput!
): AppTokenResponse!

Arguments​

mintAppToken.input ● MintAppTokenInput! non-null input​

Type​

AppTokenResponse object​

A short-lived, app-scoped gameplay token (portal). Confined to a single app: usable only against that app's Application API + Buddy realtime surface (plus read-only me and same-app refreshAppToken). It CANNOT perform management operations and CANNOT mint tokens for other apps, so a game stack that receives it never gets the player's full identity session.