Skip to content

Contracts docs: Auth & session persistence #455

Description

@codebestia

Write apps/web/docs/contracts-auth-session.md documenting what the frontend persists client-side for auth: JWT storage location (localStorage/cookie/memory — whichever it actually is), lib/jwt.ts's claim-parsing helpers, and how AuthContext.tsx initializes/refreshes/clears session state.

Acceptance criteria:

  • Storage mechanism and location for the auth token is documented precisely
  • The session initialization sequence on app load (token present vs. absent) is documented
  • Logout/clear behavior is documented, including whether device-side crypto state is also cleared

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions