Skip to content

Commit ef1654a

Browse files
Add callout to clarify the restrictions around countries for phone numbers (#2840)
Co-authored-by: Michael Novotny <manovotny@gmail.com>
1 parent c982479 commit ef1654a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/guides/configure/auth-strategies/sign-up-sign-in-options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ SMS functionality is restricted to phone numbers from countries enabled on your
3838

3939
### SMS allowlist
4040

41-
SMS functionality, including SMS [OTPs](!otp), is restricted to phone numbers from countries that are enabled on your SMS allowlist. This can be useful for avoiding extraneous SMS fees from countries from which your app is not expected to attract traffic.
41+
SMS functionality, including SMS [OTPs](!otp), is restricted to phone numbers from countries that are enabled on your SMS allowlist. This can be useful for avoiding extraneous SMS fees from countries from which your app is not expected to attract traffic. **By default, only the US and Canada are enabled.**
4242

4343
Every instance starts off with a default set of enabled SMS country tiers. To tailor it to your needs:
4444

docs/reference/javascript/types/phone-number.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ The `PhoneNumber` object describes a phone number. Phone numbers can be used as
88

99
Phone numbers must be **verified** to ensure that they can be assigned to their rightful owners. The `PhoneNumber` object holds all the necessary state around the verification process.
1010

11+
The verification process consists of two steps:
12+
1113
- The verification process always starts with the [`prepareVerification()`](#prepare-verification) method, which will send a one-time verification code via an SMS message.
1214
- The second and final step involves an attempt to complete the verification by calling the [`attemptVerification()`](#attempt-verification) method, passing the one-time code as a parameter.
1315

1416
Finally, phone numbers can be used as part of [multi-factor authentication](/docs/guides/configure/auth-strategies/sign-up-sign-in-options#multi-factor-authentication). During sign in, users can opt in to an extra verification step where they will receive an SMS message with a one-time code. This code must be entered to complete the sign in process.
1517

18+
> [!IMPORTANT]
19+
> SMS functionality, including SMS [OTPs](!otp), is restricted to phone numbers from countries that are enabled on your [SMS allowlist](/docs/guides/configure/auth-strategies/sign-up-sign-in-options#sms-allowlist). This can be useful for avoiding extraneous SMS fees from countries from which your app is not expected to attract traffic. **By default, only the US and Canada are enabled.**
20+
1621
## Properties
1722

1823
<Properties>

0 commit comments

Comments
 (0)