Is there a way to authenticate users using their email only, not their username?

Isnt this possible using the advice above, but just add another “name” field to the user type in the backend?

So username+email becomes the same (removing the need for a password), but the user has a field where they can add a “name” to their account?