Wallet Auth
Normalize Gwop auth into app-owned primitives
Normalize Gwop auth into app-owned primitives
Keep the Gwop auth lifecycle in a thin adapter instead of calling the SDK directly from routes. That keeps your API surface app-shaped while still making the upstream flow obvious.
sid for live session lookup or revocation.Each returned paymentUrl is a payable x402 challenge. The wallet proves control by settling that dust invoice.
Carry four things forward from the exchange response:
accessToken for authenticated requestsprincipal.sub as the durable wallet identitysession.sid as the revocable session handleaccount.isNewAccount to shape signup versus repeat-login UXThe adapter converts Gwop responses into app primitives and keeps upstream details like chain normalization, session status mapping, and logging out of route handlers.
See the full wallet-auth lifecycle and what auth unlocks in your backend
Learn why {chain}:{address} is the durable identity you carry forward
See the raw create call and response fields in the operational docs
Check the live session state and revoke sessions when logout matters