Does Supertokens do any phone number normalisation...
# support-questions
c
Does Supertokens do any phone number normalisation? It appears not. I made an account with [country code]0[rest of number], and when I logged in with the same number but without the zero, it created a new account πŸ€”
This could be a nice feature πŸ˜„
r
We use phonenumberlib to do the normalisation part. And that lib follows the international standard for phone number format
But feel free to open an issue about this and we can have a look
c
Does it do it for
updatePasswordlessUser
?
I'm now just setting the phone number on the user directly
If not I can normalize it before, no problem πŸ˜„
r
Ah right. No. It doesn’t. It does it only in the API call when a user signs in or signs up.
You will have to normalise the phone number yourself before giving it to that function
c
gotcha! I'll use the same lib πŸ‘