Join Discord
Powered by
Hey, what is your recommended/standard way of stor...
# support-questions-legacy
m
monish.chhadwa
03/30/2023, 1:26 PM
Hey, what is your recommended/standard way of storing a phone_number in the passwordless_users table?
r
rp_st
03/30/2023, 1:28 PM
hey
@monish.chhadwa
- See this for how we normalise the phone number in our APIs:
https://github.com/supertokens/supertokens-node/blob/master/lib/ts/recipe/passwordless/api/createCode.ts#L80
rp_st
03/30/2023, 2:07 PM
Is this what you were looking for?
m
monish.chhadwa
03/30/2023, 2:42 PM
essentially if my contact number is 8898552919 and from india Should I store it as +91-8898552919 or 918898552919
r
rp_st
03/30/2023, 2:45 PM
I think you would need the +. See the normalisation function we use above and try it yourself
2
Views
Previous
Next