Divyesh Chitroda

Results 24 comments of Divyesh Chitroda

Can you please share code snippets and configuration json file with sensitive information removed?

The error message suggests that either user is not signed in or refresh token is expired. In both cases, the user must login again to get the tokens.

For reference: PR in amplify-ios to fix this issue https://github.com/aws-amplify/amplify-ios/pull/1715

@hassanctech Please take a look at this.

JS fix for reference: https://github.com/aws-amplify/amplify-js/pull/2400

`signInWithSocialWebUI` assumes that you have an identity pool configured. You can override this by disabling the federation using `HostedUIOptions`. ``` HostedUIOptions hostedUIOptions = HostedUIOptions.builder() .scopes("openid", "email") .disableFederation(false) .build(); SignInUIOptions signInUIOptions...

This PR should address your issue: https://github.com/aws-amplify/amplify-android/pull/1823 If using Amplify provide `AWSCognitoAuthWebUISignInOptions` as: ``` AWSCognitoAuthWebUISignInOptions options = AWSCognitoAuthWebUISignInOptions.builder().isFederationEnabled(false).build(); ```

@cmunaro, fyi, if you are not using Identity Pool, you will not be able to fetch AWS credentials to access other AWS resources. To understand your use case clearly, can...

With further testing, I found out that just having federation disabled is not enough to return the correct signed in result. The parts of [code](https://github.com/aws-amplify/aws-sdk-android/blob/main/aws-android-sdk-mobile-client/src/main/java/com/amazonaws/mobile/client/AWSMobileClient.java#L1102) does point out that with...

To signout of the hostedUI, device needs to be online. Calling local signout will clear tokens, but hostedUI signout requires calling Cognito logout endpoint. Unlike iOS, Android custom tabs does...