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
- Universal login change password doesn't trim email address
- Update on trimming spaces for password resets? - #4 by lihua.zhang
Please advise any resolution.