Are user deletions cached or soft deletes internally?
I deleted a user with the Cloud UI and tried creating the user again about an hour later with password authentication and was prompted with: "{ "message": "A user with the same email already exists in the current project.", "code": 409, "type": "user_email_already_exists", "version": "0.12.32" }"
My dashboard definitely doesn't show that user as one of my registered users. For privacy purposes, I'll opt to not show a screenshot since it has some e-mails in there.
There are some additional things deleted in the background that may not have been processed yet
How is it now?
Hmm, I'm still getting the error. Similar situation. I'll do some digging to see if there's user error from my end but so far no signs of it.
Are you using oauth?
I'm doing all of these tests with password auth.
Though I may have tried using OAuth with these emails at some point. But they don't show up in Appwrite either.
Maybe that's what happened. Can you use the CLI and run appwrite users listIdentities?
It lists 4 users that I've been testing with. None of these 4 that showed up in the command are in my list of users in the Auth page in the UI.
And one of the emails matches the email you're trying to create?
yup all 4 look like e-mails I've had problems with. I had tried multiple before raising this issue.
Ok that probably explains it. So if a user already has a session and creates an OAuth2 session, it creates an identity (a connection between the current user and that oauth2 account). This allows a user to log in to an oauth2 provider even if the email is different
interesting so a user shouldn't be allowed to set up an oauth session if they're already logged in otherwise it would tie to the provider? Which means I should hide my registration page (currently is shown even if you have an active session).
is there a way to "undo" it to unbind those emails?
You can use the CLI to delete the identities
awesome thanks mr steven
[SOLVED] User Deletion Cached?
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...