question

newuser-a0cb251b-8220-4984-a885-b6e712e411a3 avatar image

Different User in Login With Amazon App

Hello,

i'm developing a fire tv app and the app uses Login With Amazon SDK for Android. I'm starting my app and i manage the login with amazon process for user "xy". The user "xy" is the user from the fire tv. Everything works fine.

Now i'm switching the user on device. User "abc" is logged in. When i'm starting the app and i call mAuthManager.getToken() i retrieve the token and all data from user "xy".

How can i check that the user is changed? In documentation i found this:

"If we can retrieve tokens, we know that the customer is already logged in so we can skip the login step. onCreate calls getToken as a first step to check if the customer is logged in."

But i retrieve always a token.

Can anybody help me?

Thx

fire tvlogin with amazonapp
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I'm using the Login With Amazon Sample App.

0 Likes 0 ·

1 Answer

Ross@Amazon avatar image
Ross@Amazon answered

Hi,

Here is some information on detecting when a user session has switched on Android.

Also check out the documentation about Clearing Authorization Data and Logging Out a User.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.