Skip to main content
POST
Validate a session grant and return its canonical address + owner challenge

Authorizations

pid_access
string
cookie
required

JWT access token set by /auth/google/callback or /auth/refresh

Body

application/json
vault
string
required

Vault PDA the session attaches to (base58)

accountId
string
required

sha256(pid) account id (0x + 64 hex chars)

sessionPubkey
string
required

Ed25519 session keypair pubkey (base58)

allowedProgram
string
required

The one allowlisted game program (base58)

expiresAt
integer
required

Session hard expiry (unix seconds, ≤ 24h out)

recordedHasAuthority
boolean
required

Whether the game program currently has an upgrade authority

recordedSlot
string
required

ProgramData slot at registration

deadline
integer
required

Owner-authorization deadline (unix seconds, TTL ≤ 600s)

nonce
string
required

Owner nonce the registration consumes

recordedAuthority
string

Upgrade authority at registration (base58, required when recordedHasAuthority)

Response

Canonical session address + owner challenge

sessionAddress
string
required

Canonical session PDA (base58)

registerPayload
string
required

Owner challenge — what the passkey signs (0x + 64 hex chars)