Skip to content

Add auth gates, returnTo redirect, sign out and reset demo - #10

Merged
TuvalZit18 merged 1 commit into
mainfrom
feat/auth-gates
Oct 17, 2026
Merged

TuvalZit18 merged 1 commit into
mainfrom
feat/auth-gates

Conversation

@TuvalZit18

Copy link
Copy Markdown
Owner
  • auth slice (session start/end/hydrate) persisted to rp.session, validated on read, synced across tabs
  • Modal gate in AppLayout and for /account redirect signed-out users to /register?returnTo=… (replace); attribution is captured before either runs
  • returnTo helpers: same-origin validation against open redirects, attribution params stripped, /register edge case handled
  • Header shows the signed-in user with Account and Sign out; sign out leaves the page before ending the session
  • Account shows user details; /register shows "already registered" when signed in
  • Reset demo button forgets session and attribution, keeps the theme
  • Tests for returnTo, every gate path, sign out, reset demo, session storage and cross-tab sync

Record the decision to add Sign out and Reset demo; update auth, modals, storage, frontend and UI docs.

- auth slice (session start/end/hydrate) persisted to rp.session,
  validated on read, synced across tabs
- Modal gate in AppLayout and <ProtectedRoute> for /account redirect
  signed-out users to /register?returnTo=… (replace); attribution is
  captured before either runs
- returnTo helpers: same-origin validation against open redirects,
  attribution params stripped, /register edge case handled
- Header shows the signed-in user with Account and Sign out; sign out
  leaves the page before ending the session
- Account shows user details; /register shows "already registered"
  when signed in
- Reset demo button forgets session and attribution, keeps the theme
- Tests for returnTo, every gate path, sign out, reset demo, session
  storage and cross-tab sync

Record the decision to add Sign out and Reset demo; update auth,
modals, storage, frontend and UI docs.
@TuvalZit18
TuvalZit18 merged commit a32d9de into main Oct 17, 2026
1 check passed
@TuvalZit18
TuvalZit18 deleted the feat/auth-gates branch October 17, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant