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

add supabase auth (default remains no auth) #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

somethingwentwell
Copy link

This pull request introduces the capability to enable Supabase authentication in our application. By leveraging Supabase auth, we can now support both traditional email & password authentication as well as various social login methods.

Changes:
Added environment variables to configure Supabase auth:

  • NEXT_PUBLIC_ENABLE_SUPABASE_AUTH: Set to false by default, meaning no authentication is required. If set to true, Supabase auth will be enabled.
  • NEXT_PUBLIC_SUPABASE_URL: Configuration for the Supabase URL, defaulted to http://localhost:8000 for development purposes.
  • NEXT_PUBLIC_SUPABASE_ANON_KEY: The anonymous key necessary for Supabase operations, to be replaced with the actual key in production.

Implementation:
The implementation checks the NEXT_PUBLIC_ENABLE_SUPABASE_AUTH variable. If it's true, the application initializes Supabase client with the provided URL and anonymous key, thus enabling the email & password and social logins supported by Supabase.

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