aws-amplify / amplify-android

The fastest and easiest way to use AWS from your Android app.
https://docs.amplify.aws/lib/q/platform/android/
Apache License 2.0
246 stars 117 forks source link

Got NotAuthorizedEception when doing global signOut #2934

Open preethambogadi opened 2 weeks ago

preethambogadi commented 2 weeks ago

From our app we are calling the following code when doing a logOut operation.

val options = AuthSignOutOptions.builder() .globalSignOut(isGlobalSignOut) .build() Amplify.Auth.signOut(options) {.....}

But getting the exception as shown in screenshot for some users only.

Screenshot 2024-10-04 at 2 44 08 PM

Using the following dependencies

implementation 'com.amplifyframework:core:2.20.0'
implementation 'com.amplifyframework:aws-auth-cognito:2.20.0'
implementation 'com.amplifyframework:aws-api:2.20.0'
implementation 'com.amazonaws:aws-android-sdk-iot:2.75.2'
mattcreaser commented 2 weeks ago

Thanks for the report @preethambogadi. We will need to investigate the correct behaviour here and get back to you.