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 Profile Page and implement Supabase Auth #96

Merged
merged 3 commits into from Apr 17, 2024

Conversation

Snarr
Copy link
Contributor

@Snarr Snarr commented Apr 17, 2024

Tickets Covered:

  • BP-226 Set up Supabase Database and Authentication
  • BP-231 Design Profile page to settings (match Figma)
  • BP-235 Add Supabase Auth login to Profile page

Change Summary:

1. Added Supabase Auth to codebase

Introduced 2 new files to add Supabase Auth user session management:

  • Supabase.js

    • Creates Supabase Client using private environment variable values
  • AuthProvider.jsx

    • Creates an AuthContext and AuthContext.Provider that sit at the top level of the application to manage User Session state

2. Added .env file for tracking database private keys and .env.sample schema

3. Added ProfileSettingsPage for configuring account through settings

Two main components of ProfileSettingsPage:

  • LoginPage

    • Appears when AuthContext login session is null
    • Displays inputs for email, password
    • Action buttons for logging in and signing up
  • ProfilePage

    • Appears when AuthContext login session exists
    • Displays user information (email)
    • Action button to sign out

Copy link
Contributor

@Jeffin-J Jeffin-J left a comment

Choose a reason for hiding this comment

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

sonic

Copy link
Contributor

@tuk05348 tuk05348 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Snarr Snarr merged commit d82ee8d into main Apr 17, 2024
3 checks passed
@Snarr Snarr deleted the BP-231-Design-Profile-page-to-settings-match-Figma branch April 17, 2024 17:29
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.

None yet

3 participants