Skip to main content

createPortalAuthorizationCode

Create a one-time, PKCE-bound portal authorization code (browser handoff). The Overworld identity origin (holding the SESSION token) calls this; redirect the player to the destination game carrying the code, which the game exchanges via exchangePortalCode. Refused like mintAppToken before any code exists: TERRITORY_NOT_SUPPORTED, AGE_REQUIRED, AGE_REQUIREMENT_NOT_MET and LEGAL_ACCEPTANCE_REQUIRED, and for a player under 18 SAFETY_LOG_REQUIRED (the app keeps no safety log) then SAFETY_MODERATOR_REQUIRED (its organization has no safety moderator), with the same neutral messages. Requires a SESSION token.

createPortalAuthorizationCode(
input: CreatePortalAuthorizationCodeInput!
): PortalAuthorizationCode!

Arguments​

createPortalAuthorizationCode.input ● CreatePortalAuthorizationCodeInput! non-null input​

Type​

PortalAuthorizationCode object​

A one-time portal authorization code. Redirect the player to redirectUri carrying code; the destination game exchanges it (with its PKCE verifier) via exchangePortalCode for an app token. Single-use and short-lived.