Email and Phone logins don't work because hashing requires the user ID. See this issue for details. To fix this we can allow users to defer hashing until the signing operation. At this point we'll have access to user ID, which will allow users to login with their Email and Phone number
Changes
add isHashed parameter to createSrpSession
hash password inside signSrpSession if isHashed=fasle
update types
update docs
update tests
add integration tests for email and phone number logins
Testing
With password hashing - users can only authenticate with Username (aka. user ID)
Context
Email and Phone logins don't work because hashing requires the user ID. See this issue for details. To fix this we can allow users to defer hashing until the signing operation. At this point we'll have access to user ID, which will allow users to login with their Email and Phone number
Changes
isHashed
parameter tocreateSrpSession
signSrpSession
ifisHashed=fasle
Testing
With password hashing - users can only authenticate with Username (aka. user ID)
Without password hashing - users can authenticate with Username (aka. user ID), and email