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

Create Auth Context #8

Open
ccatherinetan opened this issue Oct 7, 2024 · 0 comments · May be fixed by #20
Open

Create Auth Context #8

ccatherinetan opened this issue Oct 7, 2024 · 0 comments · May be fixed by #20
Assignees

Comments

@ccatherinetan
Copy link
Collaborator

Context:

The Auth context will allow us to access auth attributes across the application (i.e. on different pages) without having to pull the current auth session from Supabase each time.

Task Overview

Please make sure to git pull origin main before creating your new branch!

Route: /utils/AuthProvider.ts

  • Move all auth functions into the AuthProvider.ts file
  • Use the auth functions in the sign up and log in pages
  • For the AuthContextType we'll probably need
    • session
    • userId
    • userEmail
    • signIn
    • signOut
    • signUp

Resources:

Remember that to use ChatGPT as a resource if you're stuck on anything

Please reach out to Catherine, Ronnie, or Pragya for any questions regarding implementation. For any design-related questions please reach out to Kyrene.

@ccatherinetan ccatherinetan linked a pull request Oct 26, 2024 that will close this issue
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 a pull request may close this issue.

2 participants