#Error [user_count_exceeded] when trying to login with OAuth, email exists in Identity

7 messages · Page 1 of 1 (latest)

split vault
#

I have a user with email '[email protected]', with OAuth i created an extra identity for this user under a second email address: [email protected]. So this user has 1 user account with email '[email protected]', but 2 identity accounts: '[email protected]' and '[email protected]'

At a new login session i am trying to login [email protected]:

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={"message"%3A"The+current+project+has+exceeded+the+maximum+number+of+users.+Please+check+your+user+limit+in+the+Appwrite+console."%2C"type"%3A"user_count_exceeded"%2C"code"%3A400}

wary charm
split vault
#

Ah, i got it. I was using the github OAuth provider, with the same email '[email protected]'

split vault
#

I wonder if it shouldnt be using the filter option for only the email, instead provider & email.

wary charm