Shouldn't account linking with verified emails be possible? #3171
Replies: 1 comment 8 replies
-
This comes down to if you trust the oAuth provider. Google actually return a property on the profile indicating if the email on an account has been verified or not, which suggests there are instances where actually they may not be (although that just might be for edge cases / legacy scenarios). The behaviour is provider specific and theoretically subjective as to if you choose to trust a provider, and depends on what they mean by verified (e.g. if they reset the verified email status when a user changes their email address associated with the account). Basically it's messy and from the point of view of a library might be best to play it safe and not make assumptions - or get involved in making too many subjective decisions about providers and if they should allow specific behaviour or not. The counterargument is it convenience and that in practice it's probably fine to trust Google or a large provider (Twitter, Facebook, Apple) when they say they have verified an argument, the question is where to draw that line. I am not 100% certain because I can't remember without looking the order Events are fired in, but I think as it stands you could actually use an Event to set the verified value to true in the database for a user when they sign in for the first time if you wanted to. IMO it probably is best to leave this up to people to determine for themselves. Possibly there are ways to make handling situations like easier though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
Hi. I have a web app which uses the email provider and the google provider. However as I've come to notice, due to the possibility of account hijacking, we cant link these two accounts.
My question consists of 2 parts:
How to reproduce ☕️
All google account emails are verified: Link
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions