I'm using Login with Amazon SDK (LWA) in my Android app. I've encountered an issue yesterday. When attempting to sign in with Amazon, the browser opens up and immediately gets closed and returns to the app. Here's the error :
E/ContentValues: AuthError during authorization AuthError cat= INTERNAL type=ERROR_SERVER_REPSONSE - com.amazon.identity.auth.device.AuthError: Error=access_denied error_description=User not authenticated at com.amazon.identity.auth.device.authorization.a.a(AuthorizationResponseParser.java:81) at com.amazon.identity.auth.device.authorization.a.a(AuthorizationResponseParser.java:53) at com.amazon.identity.auth.device.authorization.AuthorizationResponseProcessor.handleResponse(AuthorizationResponseProcessor.java:24) at com.amazon.identity.auth.device.authorization.AuthorizationRequest.handleResponse(AuthorizationRequest.java:49) at com.amazon.identity.auth.device.RequestManager.handleResponse(RequestManager.java:81) at com.amazon.identity.auth.device.api.workflow.RequestContext$1.run(RequestContext.java:278) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761)
But once the user signs in to amazon from browser in phone, then Login With Amazon works even after the user signs out of it. Here's the version we're using :
public interface com.amazon.identity.auth.map.device.utils.MAPVersionInfo { public static final java.lang.String VERSION = "3.5.3"; public static final java.lang.String VERSION_NAME = "LWAAndroidSSO"; public static final java.lang.String LWA_VERSION_NAME = "LWAAndroidSDK"; public static final java.lang.String LWA_VERSION = "3.0.2"; }
I even downloaded the Android sample app from Amazon website, it's the same behaviour. Please help!