supabase-flutter icon indicating copy to clipboard operation
supabase-flutter copied to clipboard

Auth SignUp became anonymous login

Open kedeypoly opened this issue 10 months ago • 2 comments

Describe the bug SDK signUp for new user with email and password signup return error as following : ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ AuthException(message: Anonymous sign-ins are disabled, statusCode: 422, errorCode: anonymous_provider_disabled) ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ │ #0 packages/biz_tool/modules/auth/services/log_service.dart 16:5 e │ #1 packages/biz_tool/modules/auth/cubit/auth_cubit.dart 24:11 │ #2 packages/gotrue/src/gotrue_client.dart 199:24 │ #3 packages/gotrue/src/fetch.dart 107:19 │ #4 packages/gotrue/src/fetch.dart 195:3 │ #5 packages/http/http.dart 171:1 │ #6 packages/http/src/response.dart 64:3 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ │ 08:38:43.200 (+0:00:00.766000) ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ │ ⛔ Auth Cubit / sign up └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

To Reproduce Steps to reproduce the behavior: Future signUpNewUser(String email, String password) async { try { final AuthResponse res = await supabase.auth.signUp( email: email, password: password, ); log.d(res.session.toString()); log.d(res.user.toString()); } catch (e) { log.e('Auth Cubit / sign up', e); } }

Expected behavior should register the user with email and password in supabase.

Version (please complete the following information): $ dart pub deps | grep -E "supabase|gotrue|postgrest|storage_client|realtime_client|functions_client" ├── supabase_flutter 2.8.4 │ ├── supabase 2.6.3 │ │ ├── functions_client 2.4.1 │ │ ├── gotrue 2.11.1 │ │ ├── postgrest 2.4.1 │ │ ├── realtime_client 2.4.2 │ │ ├── storage_client 2.3.1

Additional context if i enable anonymous login then the user return is anonymous true

kedeypoly avatar Mar 13 '25 00:03 kedeypoly

i found out i pass no email and password to the endpoint. maybe the error message tell no email and password provided instead to login with anonymous user?

kedeypoly avatar Mar 13 '25 02:03 kedeypoly

When you say you didn't pass them, you mean they were empty, right? Because the password parameter is required so you shouldn't be able to not pass a password.

Vinzent03 avatar Mar 13 '25 23:03 Vinzent03

This issue has been closed as it has been inactive for some time. If you are still experiencing an issue, please feel free to reopen it.

grdsdev avatar Nov 12 '25 18:11 grdsdev