Commit 77cffe9
Add Supabase Auth with OAuth (Google, GitHub, X, Discord) and PostHog identification
- Add @supabase/supabase-js and @supabase/ssr dependencies
- Create browser and server Supabase client utilities
- Update middleware to refresh auth sessions on every request
- Add /auth/callback route for OAuth code exchange
- Add AuthListener component that calls posthog.identify/reset on auth state changes
- Create login page with Google, GitHub, X, and Discord OAuth + email/password
- Create protected /notifications page (redirects to login if unauthenticated)
- Add UserMenu (sign out button) to nav, visible only when logged in
- Add French translations for all new strings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4fe6475 commit 77cffe9
File tree
17 files changed
+1978
-1158
lines changed- src
- app
- [lang]
- (main)
- login
- notifications
- auth/callback
- components
- MainLayout/_components
- lib/supabase
- locales
17 files changed
+1978
-1158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments