Skip to content

Remove login/auth; keep session bookmarks in localStorage#30

Merged
manuelgeek merged 1 commit into
feat/home-redesign-planfrom
feat/remove-auth
Jul 3, 2026
Merged

Remove login/auth; keep session bookmarks in localStorage#30
manuelgeek merged 1 commit into
feat/home-redesign-planfrom
feat/remove-auth

Conversation

@manuelgeek

Copy link
Copy Markdown
Member

Closes #28

Mirrors the same change in droidconKE/droidconKE2022Web#133. Removes the Google login / auth stack. The only user-facing feature that relied on auth was starring sessions (My Sessions), so I reimplemented that client-side with localStorage — no backend needed (per the option flagged in the issue).

Auth removal

  • Dropped GoogleOAuthProvider + AuthProvider from the layout; deleted AuthContext, Login, useStarSession and the API-backed StarIcon logic
  • Removed the axios Bearer token interceptor and the getCookie('token') injection from every getServerSideProps
  • Removed @react-oauth/google and cookies-next; dropped NEXT_PUBLIC_GOOGLE_CLIENT_ID from .env.example
  • Cleaned the commented-out login markup in the navbar

Session bookmarks (no auth)

  • New useStarredSessions hook stores starred session ids in localStorage and syncs every star icon + the filter (in-tab event + cross-tab storage)
  • My Sessions now filters the already-loaded schedule by starred ids instead of calling the auth-gated bookmarked_schedule endpoint
  • Star + My Sessions are scoped to the live sessions page; past-events pages are unchanged

Feedback/reviews were already anonymous server-side, so nothing there needed to change. Build and lint are green.

Closes #28

- Drop Google OAuth + AuthContext providers and the axios Bearer interceptor
- Delete Login, AuthContext, useStarSession and the API-backed StarIcon logic
- Strip the token injection from every getServerSideProps
- Remove @react-oauth/google and cookies-next deps
- Reimplement session bookmarks + the My Sessions filter fully client-side
  via localStorage (no backend), scoped to the live sessions page
@manuelgeek
manuelgeek requested a review from NewtonMutugi July 3, 2026 09:02
@manuelgeek
manuelgeek merged commit 595b5b7 into feat/home-redesign-plan Jul 3, 2026
1 check passed
@manuelgeek
manuelgeek deleted the feat/remove-auth branch July 3, 2026 09:28
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