normalizePhone
Function: normalizePhone()
normalizePhone(
phone):string|undefined
Defined in: packages/auth/src/mfa/sms.service.ts:45
Normalise a phone number to E.164: separators (spaces, dots, dashes, parentheses) are removed, the country code is required
Parameters
phone
unknown
phone number as typed
Returns
string | undefined
the E.164 number, undefined when invalid