supabase-community / postgres-new

In-browser Postgres sandbox with AI assistance
https://database.build
Apache License 2.0
2.23k stars 175 forks source link

Error evaluating "env(SUPABASE_AUTH_GITHUB_CLIENT_ID)": environment variable SUPABASE_AUTH_GITHUB_CLIENT_ID is unset. #72

Open win4r opened 1 month ago

win4r commented 1 month ago

` npx supabase start

Need to install the following packages: supabase@1.190.0 Ok to proceed? (y) y

Using workdir /Users/charlesqin/PycharmProjects/postgres-test/postgres-new Error evaluating "env(SUPABASE_AUTH_GITHUB_CLIENT_ID)": environment variable SUPABASE_AUTH_GITHUB_CLIENT_ID is unset. `

alaminkouser commented 1 month ago

facing same issue

image

dahal4 commented 1 month ago

Faced same issue and solved by adding the keys in the .env.local of the project root path

alaminkouser commented 1 month ago

What are the values of those keys?

dahal4 commented 1 month ago

that can be obtained from the github setting > developer setting > oauth apps and create a new oauth app then you will obtain the values for those keys

tungtk1975 commented 1 month ago

What values for the Homepage URL and Authorization callback URL? i am so confuse about that. I am using local supabase (http://localhost:8000). Thank you

dahal4 commented 1 month ago

i dont know what should be the correct value so , i have provided one random url like https://postgres-new.something.info for the home page url and for auth call back http://127.0.0.1:54321/auth/v1/callback.

if it works or not let me know

krisnaw commented 2 weeks ago

I was facing the same issue. It turns out the issue was that I didn't copy env.example to env.local.