aws amplify CognitoUserSession for flutter

0

W/CognitoUserSession(32227): CognitoUserSession is not valid because idToken is null.

D/AWSMobileClient(32227): Sending password.

D/AWSMobileClient(32227): Using USER_SRP_AUTH for flow type.

D/AWSMobileClient(32227): _federatedSignIn: Putting provider and token in store

D/AWSMobileClient(32227): Inspecting user state details

D/AWSMobileClient(32227): hasFederatedToken: false provider: cognito-idp.us-east-2.amazonaws.com/us-east-2_DxbCXbeql

D/AWSMobileClient(32227): Inspecting user state details

D/AWSMobileClient(32227): hasFederatedToken: true provider: cognito-idp.us-east-2.amazonaws.com/us-east-2_DxbCXbeql

D/AWSMobileClient(32227): waitForSignIn: userState:SIGNED_IN

D/AWSMobileClient(32227): getCredentials: Validated user is signed-in

I am using flutter version aws amplify service on other aws iam account that is company account for developing Android app. This error occur only when using API ("Amplify.Auth.fetchUserAttributes()") after signing out and signing-in. I check that after signing in, go to home page and here call this api(I used auth_service flow you are providing on document or tutorial). But after app restart, this api works well. Only after signing out and signing-in, this API does not works. I checked userattribute in cognito service and attribute values is normal.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠