Skip to content

Commit 08a8363

Browse files
committed
corrects factor ids
1 parent 41c87be commit 08a8363

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

v2/mfa/frontend-setup.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ Once the user has picked a specific factor (or if `next` contains just one item)
522522
- For `otp-email`: The user has a passwordless loginMethod that has an email associated with it.
523523
- For `link-email`: The user has a passwordless loginMethod that has an email associated with it. Note that this is not a valid secondary factor, but is a valid first factor.
524524
- For `otp-sms`: The user has a passwordless loginMethod that has a phone number associated with it.
525-
- For `link-sms`: The user has a passwordless loginMethod that has a phone number associated with it. Note that this is not a valid secondary factor, but is a valie first factor.
525+
- For `link-phone`: The user has a passwordless loginMethod that has a phone number associated with it. Note that this is not a valid secondary factor, but is a valie first factor.
526526
- For `emailpassword`: The user has an email password loginMethod.
527527
- For `thirdparty`: The user has a third party loginMethod.
528528

@@ -684,7 +684,7 @@ curl --location --request PUT '^{form_apiDomain}^{form_apiBasePath}/mfa/info' \
684684
},
685685
"phoneNumbers": {
686686
"otp-sms": ["+1234567890", "+1098765432"],
687-
"link-sms": ["+1234567890", "+1098765432"],
687+
"link-phone": ["+1234567890", "+1098765432"],
688688
},
689689
}
690690
```

v2/mfa/important-concepts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Each auth challenge has a factor ID in SuperTokens:
1818
- With email OTP: `otp-email`
1919
- With SMS OTP: `otp-phone`
2020
- With email magic link: `link-email`
21-
- With SMS magic link: `sms-link`
21+
- With SMS magic link: `link-phone`
2222
- TOTP: `totp`
2323

2424
These factor IDs will be used to configure the MFA requirements for users (except the `acccess-denied` one), and also will be used to indicate which auth challenges have been completed in the current session.

v2/passwordless/common-customizations/multi-tenancy/common-domain-login.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ async function fetchLoginMethodsForTenant(tenantId: string) {
288288
if (loginMethods.firstFactors.includes("otp-email") ||
289289
loginMethods.firstFactors.includes("otp-sms") ||
290290
loginMethods.firstFactors.includes("link-email") ||
291-
loginMethods.firstFactors.includes("link-sms")) {
291+
loginMethods.firstFactors.includes("link-phone")) {
292292
// passwordless login is enabled for the tenant
293293
} else {
294294
// check for other login methods being enabled for the tenant.
@@ -309,7 +309,7 @@ async function fetchLoginMethodsForTenant(tenantId: string) {
309309
if (loginMethods.firstFactors.includes("otp-email") ||
310310
loginMethods.firstFactors.includes("otp-sms") ||
311311
loginMethods.firstFactors.includes("link-email") ||
312-
loginMethods.firstFactors.includes("link-sms")) {
312+
loginMethods.firstFactors.includes("link-phone")) {
313313
// passwordless login is enabled for the tenant
314314
} else {
315315
// check for other login methods being enabled for the tenant.

v2/passwordless/common-customizations/multi-tenancy/sub-domain-login.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async function fetchLoginMethodsForTenant(tenantId: string) {
161161
if (loginMethods.firstFactors.includes("otp-email") ||
162162
loginMethods.firstFactors.includes("otp-sms") ||
163163
loginMethods.firstFactors.includes("link-email") ||
164-
loginMethods.firstFactors.includes("link-sms")) {
164+
loginMethods.firstFactors.includes("link-phone")) {
165165
// passwordless login is enabled for the tenant
166166
} else {
167167
// check for other login methods being enabled for the tenant.
@@ -182,7 +182,7 @@ async function fetchLoginMethodsForTenant(tenantId: string) {
182182
if (loginMethods.firstFactors.includes("otp-email") ||
183183
loginMethods.firstFactors.includes("otp-sms") ||
184184
loginMethods.firstFactors.includes("link-email") ||
185-
loginMethods.firstFactors.includes("link-sms")) {
185+
loginMethods.firstFactors.includes("link-phone")) {
186186
// passwordless login is enabled for the tenant
187187
} else {
188188
// check for other login methods being enabled for the tenant.

v2/thirdpartypasswordless/common-customizations/multi-tenancy/common-domain-login.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async function fetchLoginMethodsForTenant(tenantId: string) {
325325
if (loginMethods.firstFactors.includes("otp-email") ||
326326
loginMethods.firstFactors.includes("otp-sms") ||
327327
loginMethods.firstFactors.includes("link-email") ||
328-
loginMethods.firstFactors.includes("link-sms")) {
328+
loginMethods.firstFactors.includes("link-phone")) {
329329
// render sign in with passwordless UI as well.
330330
}
331331
// more checks for other login methods...

v2/thirdpartypasswordless/common-customizations/multi-tenancy/sub-domain-login.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async function fetchLoginMethodsForTenant(tenantId: string) {
196196
if (loginMethods.firstFactors.includes("otp-email") ||
197197
loginMethods.firstFactors.includes("otp-sms") ||
198198
loginMethods.firstFactors.includes("link-email") ||
199-
loginMethods.firstFactors.includes("link-sms")) {
199+
loginMethods.firstFactors.includes("link-phone")) {
200200
// render sign in with passwordless UI as well.
201201
}
202202
// more checks for other login methods...

0 commit comments

Comments
 (0)