Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recoverpassword() auth flow is not recognizing when "okta_email" is passed in as the authentication type. #1523

Open
thegarty-foa opened this issue Jul 2, 2024 · 0 comments
Labels

Comments

@thegarty-foa
Copy link

Describe the bug

When using the recover password On-Demand flow, the object being returned from oktaAuth.idx.proceed({ authenticator: "okta_email" }); always has currentAuthenticatorEnrollment set to "phone". When passing in "okta_email as the authenticator, the expected currentAuthenticatorEnrollment value should be "email".

Reproduction Steps?

const { 
  status, // IdxStatus.PENDING
  nextStep: { 
    inputs // [{ name: 'username', ... }]
  } 
} = await authClient.idx.recoverPassword();
// gather username from user input 
const { 
  status, // IdxStatus.PENDING
  nextStep: { 
    inputs, // [{ name: 'authenticator', ... }] 
  } 
} = await authClient.idx.proceed({ username });
// user sees a list of authenticators and selects "email"
const { 
  status, // IdxStatus.PENDING
  nextStep: {
    inputs // [{ name: 'verificationCode', ... }]
  } 
} = await authClient.idx.proceed({ authenticator: AuthenticatorKey.OKTA_EMAIL /* 'okta_email' */ });

The value of currentAuthenticatorEnrollment from the object returned in the last call should be set to "email" but is instead always "phone"

SDK Versions

okta-auth-js 7.5.0

Additional Information?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant