You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When signups are disabled and user tried to sign up, some auth methods return information about signups being disabled, some fail with internal server error.
To Reproduce
When signups are disabled (by [auth.enable_signup] set to true in config.toml):
calling auth.signUp with email+password input (from @supabase/supabase-js)//signup (in supbase/auth repository) throws error:
Signups not allowed for this instance
calling auth.signInWithOAuth//callback with Google provider redirects back to the page with parameters:
Bug report
Describe the bug
When signups are disabled and user tried to sign up, some auth methods return information about signups being disabled, some fail with internal server error.
To Reproduce
When signups are disabled (by
[auth.enable_signup]
set totrue
inconfig.toml
):auth.signUp
with email+password input (from@supabase/supabase-js
)//signup
(insupbase/auth
repository) throws error:auth.signInWithOAuth
//callback
with Google provider redirects back to the page with parameters:auth.signInWithIdToken
//token?grant_type=id_token
with Google provider (as described here ) throws:I suspect this is due to createAccountFromExternalIdentity throwing unprocessableEntityError and token login handler forwarding this as Internal Server Error
Expected behavior
The endpoint
/token?grant_type=id_token
to pass theunprocessableEntityError
to the client with message about signups being disabled.System information
The text was updated successfully, but these errors were encountered: