Disable signups AFTER containers been built #5355
rotemrevivo91
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running a self-hosted environment where I successfully create an admin user on build time by sending a POST request to https://mysupabase/auth/v1/signup. After creating the user I need to disable user signups to my website.
Unfortunately, in a self-hosted environment this setting is decided by an env variable on build time, and when accessing https://studio/project/default/auth/settings and toggling
Enable Email Signupan error message appears that PATCH is not enabled.The call is going to
/api/auth/default/configand when trying to recreate the call manually with curl as follows:curl -X PATCH -H "apikey: SERVICE_ROLE_KEY \ -H Content-Type: application/json \ -H "Authorization: Bearer SERVICE_ROLE_KEY \ -d '{"EXTERNAL_EMAIL_ENABLED":false}' \ https://.../project/default/auth/settingsI get an error message 401 Unauthorized.
Anyone knows if its possible atm or if i'm doing something wrong?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions