Error [user_count_exceeded] when trying to login with OAuth, email exists in Identity
- 0
- Functions
- Auth
- Cloud
I have a user with email 'test@test.nl', with OAuth i created an extra identity for this user under a second email address: test2@test2.nl. So this user has 1 user account with email 'test@test.nl', but 2 identity accounts: 'test@test.nl' and 'test2@test2.nl'
At a new login session i am trying to login test2@test2.nl:
appwriteService.account.createOAuth2Session(
provider,
`${window.location.origin}/`,
`${window.location.origin}/login`,
);
I have blocked creating accounts from the client, and that only server sided functions can create accounts. But i dont want people to create a new account, but login into their existing account.
I am getting an error in de browser url: http://localhost:3000/login?error=%7B%22message%22%3A%22The+current+project+has+exceeded+the+maximum+number+of+users.+Please+check+your+user+limit+in+the+Appwrite+console.%22%2C%22type%22%3A%22user_count_exceeded%22%2C%22code%22%3A400%7D
Weird...I expect it to use the existing account via the Identity Rather than attempt to create a new user 🧐
We look up using the provider ID.
Recommended threads
- Error: User (role: guests) missing scope...
I want to send a verification code to the user and the given phone number and check it and create a session right after the user entered the secret. For me that...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...