Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to normalise form field inputs #589

Open
Tracked by #638
rishabhpoddar opened this issue Sep 18, 2022 · 0 comments
Open
Tracked by #638

Allow users to normalise form field inputs #589

rishabhpoddar opened this issue Sep 18, 2022 · 0 comments

Comments

@rishabhpoddar
Copy link
Member

  • They should be able to give their own logic for normalising this on the frontend and backend SDKs - similar to how they can give their own logic for validating these.
  • Also in passwordless recipe, in case of phone number and email input, we call the defaultEmailValidator first and then call the user's phone number / email validators. This works fine in 99% of the cases since our default validator is very basic, but what if the user wants to not input emails at all in this case and wants to do phone number or username?
  • Should we do trim to all fields in the form field other than password ones? Cause doing the trimming just for the validation check is odd since it leaves the actual email / phone number in the network request non trimmed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant