https://supertokens.com/ logo
c

CaptainPhoton

07/02/2022, 7:08 AM
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

rp

07/02/2022, 7:09 AM
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

CaptainPhoton

07/02/2022, 7:22 AM
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

rp

07/02/2022, 7:22 AM
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

CaptainPhoton

07/02/2022, 7:23 AM
gotcha! I'll use the same lib πŸ‘