on native, we currently check if the username chosen by a user satisfies the validUsernameRegex check, but we don't check if it is a valid eth address. when the user tries to register with a valid eth address as their username in non-siwe registration, the keyserver sends back a reserved username error. this is confusing, because it's actually an invalid username, not a reserved one. in this diff i've added the isValidEthereumAddress check to the UsernameSelection component on native and i've updated createAccount on keyserver to return an invalid username error instead of a reserved username error in this scenario.
Details
Details
- set validUsername to true on native and confirmed that the keyserver returns an invalid username error
- with the updated validUsername check on native, the "next" button is now grayed out if the user tries to pick a valid eth address as their username
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- invalidUsername (branched from master)
- Lint
No Lint Coverage - Unit
No Test Coverage