Skip to content

Commit 77cffe9

Browse files
xrendanclaude
andcommitted
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

17 files changed

+1978
-1158
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
"@radix-ui/react-popover": "^1.1.15",
3535
"@radix-ui/react-select": "^2.2.6",
3636
"@radix-ui/react-slot": "^1.2.3",
37+
"@supabase/ssr": "^0.8.0",
38+
"@supabase/supabase-js": "^2.95.3",
3739
"@tailwindcss/forms": "^0.5.10",
3840
"@types/mdx": "^2.0.13",
3941
"class-variance-authority": "^0.7.1",

pnpm-lock.yaml

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)