Hacker News new | ask | show | jobs
by ryanjm33 2333 days ago
The problem with this approach is that you assume the user only has one email address signed in. They might have `/u/1/` as their personal email used on your website. This could cause more confusion than help since this isn't common practice. (Plus you are assuming gmail.)
1 comments

> Plus you are assuming gmail.

There aren't any assumptions. You use this method if the user provided a gmail address. Users of other email services fall back to the default method.

It's not just gmail, but G Suite. The idea is to look up the MX records and detect this.