Skip to content

Private session option on AWS Amplify Social Login #1287

@deveshmittalncs

Description

@deveshmittalncs

Hi

We are logging using the social sign in options on AWS Amplify on Android.

 Amplify.Auth.signInWithSocialWebUI(
                    AuthProvider.facebook(),
                    activity as LoginActivity,
                    { result ->
                        Log.i("AuthQuickstart", "Facebook login: " + result.toString())
                        if(result.isSignInComplete){
                            (activity as LoginActivity).launchDashboardActivity()
                        }
                    },
                    { error ->
                        Log.e("AuthQuickstart", error.toString())
                    }
                )

On iOS, an option is provided with which when the user logs out from the device, the default Social account isn't picked up again.


Amplify.Auth.signInWithWebUI(for: .apple, presentationAnchor: presentAnchor,options: .preferPrivateSession()) {​​​​​​​​ result in}​​​​​​​

We require the user to login to our app using a different social login from the same provider.

Is it possible to achieve this on Android?

Metadata

Metadata

Assignees

No one assigned

    Labels

    authRelated to the Auth category/pluginscognitoIssues related to the Cognito servicefeature-requestRequest a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions