Skip to content

Commit cadb0cb

Browse files
committed
fix wording
1 parent b325d1c commit cadb0cb

File tree

1 file changed

+3
-1
lines changed
  • src/pages/[platform]/build-a-backend/auth/connect-your-frontend/switching-authentication-flows

1 file changed

+3
-1
lines changed

src/pages/[platform]/build-a-backend/auth/connect-your-frontend/switching-authentication-flows/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ const { nextStep } = await signIn({
200200
});
201201
```
202202

203-
If the desired first factor is not known or you would like to provide users with available options, `preferredChallenge` can be omitted from the initial `signIn` API call to discover which authentication first factors are available for a user via the `CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION` step.
203+
If the desired first factor is not known or you would like to provide users with the available options, `preferredChallenge` can be omitted from the initial `signIn` API call.
204+
205+
This allows you to discover which authentication first factors are available for a user via the `CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION` step. You can then present the available options to the user and use the `confirmSignIn` API to respond with the user's selection.
204206

205207
```ts
206208
const { nextStep: signInNextStep } = await signIn({

0 commit comments

Comments
 (0)