When a username does not meet formatting requirements, for example by having trailing spaces in it, the following error message is displayed to the user:
2 validation errors detected: Value at 'userAlias' failed to satisfy constraint: Member must satisfy regular expression pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+; Value at 'userName' failed to satisfy constraint: Member must satisfy regular expression pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
Expected behavior
Either trim the username (#9150 ) or give a human readable message (#3862 / aws-amplify/amplify-js#6737 ).
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When a username does not meet formatting requirements, for example by having trailing spaces in it, the following error message is displayed to the user:
Expected behavior
Either trim the username (#9150 ) or give a human readable message (#3862 / aws-amplify/amplify-js#6737 ).
Reproduction steps
Code Snippet
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots