Skip to main content

Module browser_session

Module browser_session 

Source
Expand description

Browser-facing ATProto session exchange and viewer context.

The exchange consumes a one-use, DID-signed ATProto service-auth JWT plus its DPoP proof, resolves any local tenant only from the authority-owned hosted-account store, and creates the opaque server-side session used by identity registration and federation intake.

Structs§

ViewerContext

Constants§

SESSION_EXCHANGE_PATH
WHOAMI_PATH

Functions§

exchange
Consume an ATProto service-auth assertion and establish the HttpOnly cookie session expected by the self-service identity mutation routes.
whoami
Return the viewer authority derived from the opaque server-side session. Missing, invalid, expired, or non-ATProto sessions all collapse to the same public unauthenticated floor.