mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2026-07-25 21:46:08 -04:00
[PR #76] [CLOSED] add supabase auth (default remains no auth) #141
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/webapp-conversation/pull/76
Author: @somethingwentwell
Created: 6/4/2024
Status: ❌ Closed
Base:
main← Head:add-supabase-auth📝 Commits (1)
13c6b6cadd supabase auth📊 Changes
9 files changed (+181 additions, -18 deletions)
View changed files
📝
.env.example(+6 -0)📝
.vscode/settings.json(+1 -1)📝
README.md(+4 -0)➕
README_SUPABASE_AUTH.md(+60 -0)📝
app/page.tsx(+78 -11)📝
config/index.ts(+2 -2)➕
docker-compose.yml(+13 -0)📝
package.json(+7 -4)➕
utils/supabaseClient.ts(+10 -0)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.