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
inder
inder2mo ago
When self-hosting, config is done via env variables. Setting up via dashboard wont work
idkwhat
idkwhatOP2mo ago
but then even if i add in .env it says "code":400,"error_code":"validation_failed","msg":"Unsupported provider: provider is not enabled"}
inder
inder2mo ago
What env variables have you added?
idkwhat
idkwhatOP2mo ago
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
inder
inder2mo ago
Are these variables being passed to auth container? And did you redeploy after setting these variables?
idkwhat
idkwhatOP2mo ago
i restarted my container and it shows healthy
inder
inder2mo ago
In the compose file, are these variables being passed to auth container? Or have you only added them in env?
idkwhat
idkwhatOP2mo ago
added them in env
inder
inder2mo ago
Check in compose file For auth service
idkwhat
idkwhatOP2mo ago
so like??
idkwhat
idkwhatOP2mo ago
this sir
inder
inder2mo ago
In the auth service, these variables have to be added as well For example
services:
auth:
environment:
GOTRUE_EXTERNAL_GOOGLE_ENABLED: ${GOTRUE_EXTERNAL_GOOGLE_ENABLED}
services:
auth:
environment:
GOTRUE_EXTERNAL_GOOGLE_ENABLED: ${GOTRUE_EXTERNAL_GOOGLE_ENABLED}
See if these values are being passed to auth container
idkwhat
idkwhatOP2mo ago
so if i pass them , then i need to put these values in coolify dashboard , correct?
inder
inder2mo ago
Yes, you first add the actual values in secrets and then you reference them in compose file like I have shown above
idkwhat
idkwhatOP2mo ago
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?
inder
inder2mo ago
No redeploy at the end. First add values in secrets, then make changes in compose file and then redeploy. And your data will remain
idkwhat
idkwhatOP2mo ago
sir what and where is scerets?
inder
inder2mo ago
I mean the env variables
idkwhat
idkwhatOP2mo ago
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
inder
inder2mo ago
What frontend framework are you using? And show the code where you call signInWithOauth
idkwhat
idkwhatOP2mo ago
im using react - vite
inder
inder2mo ago
And the code
idkwhat
idkwhatOP2mo ago
resolved sir thanks any suggestions on sometime cool like im still newbie so any suggestions

Did you find this page helpful?