v2 - SDK

Redeem Viewer Sign In

Sign in with the code a card mint or top-up answered (Tom, 2026-10-25: someone who just minted is never asked again). The mint's on-chain EIP-3009 signature is the proof of the wallet; the code carries it to the site the viewer returns to. Checks: unconsumed, unexpired, this wallet, and the page's Origin is the site it was issued for. Then a jj_ viewer token (scope viewer) and, with a device key, a 30-day remembered sign-in on this site. 401 with {reason} otherwise; the player signs as usual.

post/v2/public/viewer-session/redeem

Request

  • Base URL
    https://api.jubjubapp.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

sign_in_codestring required
wallet_addressstring required
device_public_keyobject nullable

P-256 public JWK {kty, crv, x, y} for a remembered sign-in

Response

Successful Response

session_tokenstring required
profile_idstring required
wallet_addressstring required
remembered_session_idstring nullable
remembered_untilstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.