Skip to content

Auth SignUp became anonymous login #1133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kedeypoly opened this issue Mar 13, 2025 · 2 comments
Open

Auth SignUp became anonymous login #1133

kedeypoly opened this issue Mar 13, 2025 · 2 comments
Labels
auth This issue or pull request is related to authentication bug Something isn't working

Comments

@kedeypoly
Copy link

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 kedeypoly added the bug Something isn't working label Mar 13, 2025
@kedeypoly
Copy link
Author

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?

@Vinzent03
Copy link
Collaborator

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 Vinzent03 added the auth This issue or pull request is related to authentication label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth This issue or pull request is related to authentication bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants