Hey, what is your recommended/standard way of stor...
# support-questions-legacy
m
Hey, what is your recommended/standard way of storing a phone_number in the passwordless_users table?
r
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
Is this what you were looking for?
m
essentially if my contact number is 8898552919 and from india Should I store it as +91-8898552919 or 918898552919
r
I think you would need the +. See the normalisation function we use above and try it yourself
2 Views