diff --git a/aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/HostedUIClient.kt b/aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/HostedUIClient.kt index 8bf11829c..29172c255 100644 --- a/aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/HostedUIClient.kt +++ b/aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/HostedUIClient.kt @@ -60,6 +60,8 @@ internal class HostedUIClient private constructor( @Throws(RuntimeException::class) fun launchCustomTabsSignIn(hostedUIOptions: HostedUIOptions) { + session = client?.newSession(null) + launchCustomTabs( uri = createAuthorizeUri(hostedUIOptions), activity = hostedUIOptions.callingActivity,