Hacker News new | past | comments | ask | show | jobs | submit login

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.)



> 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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: