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

feat: check if flow is supported - OKTA-406094 #838

Closed
wants to merge 5 commits into from

Conversation

shuowu
Copy link
Contributor

@shuowu shuowu commented Jun 24, 2021

This PR addresses:
When using idx.recoverPassword method, tokens might be returned without ask the user to reset the password (basically just authentication flow has been executed), this behaviour confuses devs.

Solution:
Check if the key remediation (reset-authenticator) is proceeded before exchanging code for tokens. AuthSDKError is thrown if the key remediation is not called.

@shuowu shuowu requested a review from aarongranick-okta June 24, 2021 16:13
@shuowu-okta shuowu-okta force-pushed the sw-check-if-flow-is-supported-406094 branch from a88175c to cb98997 Compare June 28, 2021 14:26
eng-prod-CI-bot-okta pushed a commit that referenced this pull request Jun 28, 2021
feat: detect if passowrd recovery flow is supported - OKTA-406094
add unit test
lint & changelog
fix npm issue in sample folders

OKTA-406094
<<<Jenkins Check-In of Tested SHA: cb98997 for [email protected]>>>
Artifact: okta-auth-js
Files changed count: 17
PR Link: "#838"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants