Failed to update auth configuration: API error happened while trying to communicate with the
sever.auth
i have selfhosted dsupabase using coolify, and im trying for google auth , through auth section in dashboard
23 Replies
When self-hosting, config is done via env variables. Setting up via dashboard wont work
but then even if i add in .env it says
"code":400,"error_code":"validation_failed","msg":"Unsupported provider: provider is not enabled"}
What env variables have you added?
GOTRUE_EXTERNAL_GOOGLE_ENABLED=true
GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
GOTRUE_EXTERNAL_GOOGLE_SECRET=YOUR_GOOGLE_CLIENT_SECRET
GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI=https://supabase.manve.co/auth/v1/callback
Are these variables being passed to auth container? And did you redeploy after setting these variables?
i restarted my container
and it shows healthy
In the compose file, are these variables being passed to auth container? Or have you only added them in env?
added them in env
Check in compose file
For auth service
so like??
this sir
In the auth service, these variables have to be added as well
For example
See if these values are being passed to auth container
so if i pass them , then i need to put these values in coolify dashboard , correct?
Yes, you first add the actual values in secrets and then you reference them in compose file like I have shown above
sir like now i update my compose file, redeploy , then head to env variavble in coolify and update the actual creds
and a doubt if i do this , will my current data or db settings go away?
No redeploy at the end. First add values in secrets, then make changes in compose file and then redeploy. And your data will remain
sir what and where is scerets?
I mean the env variables
ok sir
heyy
now when i click sign in with google
its opening my supase dashboard after choosing acc with google
any idea what might be wrong
What frontend framework are you using? And show the code where you call signInWithOauth
im using react - vite
And the code
resolved sir thanks
any suggestions on sometime cool like im still newbie so any suggestions