DEV Community

Discussion on: As a backend developer, What should you do with users' gmail accounts that contains dots?

Collapse
 
dlukanin profile image
Dmitry Lukanin • Edited

Some validation/sanitization libs support gmail addresses and can treat them as one address.

For example:

test@gmail.com -> test@gmail.com
te.st@gmail.com -> test@gmail.com

For reference: npmjs.com/package/validator

Collapse
 
nathanburgess profile image
Nathan Burgess

You shouldn't do this for the simple fact that if a user has entered their email twice like this, then they're expecting them to behave like 2 separate addresses. It's just extra overhead on your platform.