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] Set up user auth flow #8

Closed
wants to merge 3 commits into from
Closed

Conversation

celinechoiii
Copy link
Contributor

What's new in this PR

Description

Created a login page to test out the sign up and sign in functionalities.

Screenshots

How to review

  1. Open the webpage and navigate to http://localhost:3000/login
  2. Fill in the first entry with the email and second entry with the password. Hit the sign up button.
  3. Go to Supabase dashboard and click Authentication. Check if the user is created.
  4. To test the sign-in functionality, re-enter the email and password then click the sign in button.
  5. Navigate to Logs then the Auth page to see if the request went through. You could also check the last sign in time from the Authentication page.

To see how the log-in screen is implemented, navigate to src/app/login/page.tsx. To see the backend functions, look into src/api/supabase/auth/auth.ts.

Next steps

Storing the users in the table once user features are finalized.

Relevant Links

https://supabase.com/docs/guides/auth/auth-email

Online sources

Related PRs

🛍 CC: @EthanAuyeung

@vercel
Copy link

vercel bot commented Oct 3, 2023

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

Name Status Preview Comments Updated (UTC)
shanti-project ❌ Failed (Inspect) Oct 5, 2023 5:10am

Copy link
Collaborator

@EthanAuyeung EthanAuyeung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix eslint and prettier issues. Let me know if you have any questions!

Copy link

@sauhardjain sauhardjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good overall but can you please rebase from main? Also if you copy over the .eslintrc.js from main, that should ideally fix the eslint configuration.

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.

3 participants