Sign in/up: error due to hidden space behind email address

On Android devices, while signing up/in, in some cases a space is added to the end of the email address field which is not visible to the user and leads to the following error ‘The email is invalid’. More people suffering from the same problem and any ideas how to solve this?

Are you using the hosted login page provided by Auth0, or are you collecting the credentials directly in your app? In either case, is this a custom build API or are you using an SDK like Lock?