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
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...