Skip to content
Back

Deleted user which signed with google cannot creatable again.

  • 0
  • Self Hosted
  • Auth
ipatavatsizz
7 Mar, 2025, 15:19

Self-Hosted version 1.6.1 clean setup.

I added Google sign, but I realized that when I delete the user in auth, I cannot use that account again to sign in inside app.

Steps to reproduce:

  • Set up a provider, google, github etc.
  • Login to create the user
  • Remove identities first and then user in auth dashboard.
  • Try to sign in again. Appwrite gives 400 error.

Log file is in attachment.

TL;DR
Developers are facing an issue where a user deleted from Appwrite cannot be recreated, leading to a 409 error stating the user already exists. This occurs when using Google sign-in. The problem lies in the deleted user still existing in the database despite not showing up in the user list. The steps to reproduce involve setting up a provider, creating a user, removing identities and the user, then attempting to sign in again. The issue occurs with providers like Google and Github. As a workaround, developers can manually remove the deleted user's data from the database to allow for recreation.
ipatavatsizz
7 Mar, 2025, 15:19

This applies to other providers too.

ipatavatsizz
7 Mar, 2025, 15:34

I made a request to account/sessions/oauth2/google/?project=... and tried to login, it resulted this.

Error 409 A user with the same id, email, or phone already exists in this project.

Type _already_exists

But it does not seem to be in my user list.

ipatavatsizz
7 Mar, 2025, 15:49

I checked the user again using Appwrite CLI in my remote server, Doesn't seem. Must still be inside databases I guess but why? why it was not properly deleted?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more