Universal login one time code does not trim space and tab characters

We use the universal login flow with email code.

We found that if a user copy/paste of login code includes leading or trailing spaces or tabs the UI complains that it is an invalid code instead of just trimming the tab or space off and proceeding with the request.

The mailed code and the pasted code look exactly the same to the user.

The problem is similar to a previously reported and resolved issue for email address

Please advise any resolution.

Hi @streamzz,

Welcome to the Auth0 Community!

At the moment, it seems that you must provide the exact passwordless email code without trailing or leading spaces to login correctly.

I agree that the trailing and leading white spaces should be trimmed automatically.

I will reach out to our Engineering teams regarding this and I will follow up once I have more information.

Thanks,
Rueben

1 Like