headlong icon indicating copy to clipboard operation
headlong copied to clipboard

Auth

Open justin-fiedler opened this issue 1 year ago • 2 comments

Summary

  • RLS has been added in supabase to the thoughts table to restrict access to authenticated users only
  • Removes need for supabase service role key
  • Adds react-router-dom with auth pre-checks per route and redirects to login if needed
  • Adds login screen /login
  • Adds password reset screen /reset-password to allow users to set a password (vs only magic link)
  • Adds Signout button in App
  • Extracts some components out of App.tsx
  • README updates
  • Removes existing npm vulnerabilities

TODO

  • Prevent new user creation or add captchas
  • ~~Allow email/password login in addition to magic link password reset~~

Screenshots

Login screen

image

Password reset screen

image

Sign out button

image

justin-fiedler avatar Jul 14 '24 05:07 justin-fiedler

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlong ❌ Failed (Inspect) Jul 17, 2024 5:46am

vercel[bot] avatar Jul 14 '24 05:07 vercel[bot]

@justin-fiedler - this is looking great. love the screenshots? is this ready to merge? :-D

andyk avatar Jul 25 '24 20:07 andyk