Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth #9

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Auth #9

wants to merge 15 commits into from

Conversation

justin-fiedler
Copy link
Collaborator

@justin-fiedler justin-fiedler commented Jul 14, 2024

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 justin-fiedler requested a review from andyk July 14, 2024 05:34
@justin-fiedler justin-fiedler self-assigned this Jul 14, 2024
Copy link

vercel bot commented Jul 14, 2024

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

…cks with redirects, remove npm vulnerabilities
@andyk
Copy link
Owner

andyk commented Jul 25, 2024

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

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.

2 participants