CognitoUser TypeScript definition missing challengeName
See original GitHub issueDescribe the bug
The CognitoUser
TS definition exported from @aws-amplify/auth
is missing challengeName
on its interface, so whenever I try to check user.challengeName
, I receive an error
Expected behavior
challengeName
should be included in type definition for CognitoUser
Error
Property 'challengeName' does not exist on type 'CognitoUser'.
Dependencies:
@aws-amplify/auth
: 1.2.28
Sample code
Sandbox: https://codesandbox.io/s/cognitouser-issue-hd7y1 (check src/index.ts
file)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:10 (2 by maintainers)
Top Results From Across the Web
amazon-cognito-identity-js - npm
The Amazon Cognito Identity SDK for JavaScript requires two configuration values from your AWS Account in order to access your Cognito User ......
Read more >RespondToAuthChallenge - Amazon Cognito User Pools
ChallengeName. The challenge name. For more information, see InitiateAuth. ADMIN_NO_SRP_AUTH isn't a valid value. Type: String.
Read more >Passwordless authentication flow in Cognito User Pool
Passwordless authentication flow in Cognito User Pool ... 5 "define-challenge-lambda", ... issueTokens , failAuthentication and challengeName .
Read more >AuthClass | amplify-js
changePassword(user: CognitoUser | any, oldPassword: string, newPassword: string, clientMetadata?: ClientMetaData): Promise<"SUCCESS">. Defined in ...
Read more >Magic links with Cognito using the CDK - DEV Community
Tagged with cdk, lambda, cognito, typescript. ... We need to create a Cognito User Pool and App Client that will help us register...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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:
furthermore, challengeParam is also not yet defined…
Still missing? Re-open?