amazon-cognito-auth-js icon indicating copy to clipboard operation
amazon-cognito-auth-js copied to clipboard

@types/amazon-cognito-auth-js problem

Open engharb opened this issue 6 years ago • 1 comments

@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?

engharb avatar Dec 18 '18 16:12 engharb

I think you need to call auth.getSession()

dannyjlaurence-exp avatar Dec 18 '19 21:12 dannyjlaurence-exp