langgenius / webapp-conversation

MIT License
388 stars 710 forks source link

add supabase auth (default remains no auth) #76

Open somethingwentwell opened 3 months ago

somethingwentwell commented 3 months ago

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:

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.