Trying to understand some auth behavior. I am hav...
# help
s
Trying to understand some auth behavior. I am having users authenticate with discord. A user changed their email on discord and it appears that a new user was created. Which in turn had them no longer connected to their profile etc as I am using the user id to associate them. I was able to resolve this but is it expected behavior?
b
Yeah this is pretty much expected. Since the key is email address there’s no way to know it’s the same user. On the bright side with using email address as the key the user can authenticate with different providers and will login to the same Supabase account.
This latter case is way more common than what you mentioned. I often go to a site and can’t remember which provider I used to authenticate. With Supabase it doesn’t matter. I can log in with FB then next time Google then Twitter, etc. and each time I’m logging into my same account. It’s very convenient.
You can just implement a change email address option on your app and it solves your problem.
s
Cool, makes sense to me and I totally agree with the use case you explained is more common. Just want to make sure I wasn't doing something wrong. Thank you