amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
423 stars 232 forks source link

@types/amazon-cognito-auth-js problem #170

Open engharb opened 5 years ago

engharb commented 5 years ago

@yuntuowang I have installed @types/amazon-cognito-auth-js in my Mobile_APP project using npm. And then import it like

import { CognitoAuth, CognitoAuthOptions } from “amazon-cognito-auth-js”;

export class MyClass {
...

// by calling
let auth = new CognitoAuth(authData);
// nothing happened and I can not continue testing or authenticating the logged in user
....

}

Any suggestion?

dannyjlaurence-exp commented 4 years ago

I think you need to call auth.getSession()