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
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...