AirLabsTeam / react-native-aws-cognito-js

React Native AWS Cognito JS SDK
Other
134 stars 19 forks source link

callback.newPasswordRequired is not a function #1

Closed hszeto closed 7 years ago

hszeto commented 7 years ago

I followed this example.

https://github.com/AirLabsTeam/react-native-aws-cognito-js/blob/master/example/app.js

  1. Replaced const appConfig with my configs.
  2. Created a new Cognito User Pool and Federated Identity.
  3. Manually created an user in Cognito User Pool dashboard.
  4. Fire up my React Native app.
  5. Login.

I got this error in the console. "callback.newPasswordRequired is not a function"

How can I get around this?

Thanks

jmparsons commented 7 years ago

@hszeto This is a direct port of the official Amazon Cognito Identity SDK for JavaScript.

This should help you out:

https://github.com/aws/amazon-cognito-identity-js/issues/175