Auth user email changed

Hi new user here working on an app with supabase. I created myself an admin account within my app and somehow the email associated to my auth user is now changed to some random numbers and letters. Now I cant login and do anything with the auth user. It won't let me delete it Any ideas on how to fix this?
8 Replies
tomaspozo
tomaspozo2mo ago
Where do you see that change? On a custom table on your public schema? or the auth.users table? Can you share some screenshots?
Johan137
Johan137OP2mo ago
In the auth.user table, and I can't delete that one but I can delete other auth.user entries. If a new user signs up it saves the email there but somehow this one got changed and theres nothing I can do to change it back I'll grab some screenshots in a bit
Fieryduck82579
Fieryduck825792mo ago
the email associated to my auth user is now changed to some random numbers and letters.
This sounds like a "soft deletion". Do you anywhere in your code call deleteUser with the 2nd parameter set to true?
JavaScript: Delete a user | Supabase Docs
Supabase API reference for JavaScript: Delete a user
Johan137
Johan137OP2mo ago
Hmm not that I'm aware of, but I'm still pretty new at this. May not be looking in the right place Is there a way to recover that auth entry or is it just "corrupted". If not how would I go about creating a new one using the same email
Fieryduck82579
Fieryduck825792mo ago
It depends. How did you create it to begin with? And perhaps you should also investigate what caused the soft deletion to begin with to avoid this from happening again.
Johan137
Johan137OP2mo ago
Just from a simple login screen on the webapp I've made, doing a little vibe coding with an AI that integrates with supabase. So it created everything, and might have messed something up in an update or add on that was done. Not entirely sure
Fieryduck82579
Fieryduck825792mo ago
If you don't have anything valuable linked to your account, you could delete the user from within your Supabase project's dashboard (Authentication → Users). Have you tried creating another account to see if this behavior repeats itself?
Johan137
Johan137OP2mo ago
Yea if created some other users and those are still fine. I'd like to stay away from deleting it because I do have some things I'd rather not lose in the account, but seems like that may be the only option. Appreciate all your help! Side note, also having some problems with changing the email templates. Essentially want a current user to be able to invite a family member to the platform and tie it to that account using a token, but I can't get the right link to be sent to the user to create a login, keep getting an error

Did you find this page helpful?