-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
CognitoUser TypeScript definition missing challengeName #3733
Comments
Related to #3316 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems. |
@iamkevinwolf I can confirm this is still an ongoing issue as I've only just come across it. Its probably been abit too long for this reply to be of any good to you but for the interim as a quick fix i've resorted to the following: export type AuthChallengeName =
| "NEW_PASSWORD_REQUIRED"
| "SMS_MFA"
| "SOFTWARE_TOKEN_MFA"
| "MFA_SETUP";
export type AuthUser = CognitoUser & {
challengeName: AuthChallengeName
} furthermore, challengeParam is also not yet defined..... |
Stills missing on version 3.3.2 |
Still missing in version 3.4.29. It's been over 2 years, seriously???????? |
Still missing? Re-open? |
why is this closed? both packages |
We are re-opening this issue to explore why this is happening. Thank you for the feedback! FYI @stocaaro @chrisbonifacio |
Closing this issue since it was resolve with #10047 |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
The
CognitoUser
TS definition exported from@aws-amplify/auth
is missingchallengeName
on its interface, so whenever I try to checkuser.challengeName
, I receive an errorExpected behavior
challengeName
should be included in type definition forCognitoUser
Error
Dependencies:
@aws-amplify/auth
: 1.2.28Sample code
Sandbox: https://codesandbox.io/s/cognitouser-issue-hd7y1 (check
src/index.ts
file)The text was updated successfully, but these errors were encountered: