Skip to content

Commit f9960e8

Browse files
committed
fix(auth): UserCancelledException occurrence on sign-in after sign-out
#3167
1 parent e281299 commit f9960e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/HostedUIClient.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ internal class HostedUIClient private constructor(
6060

6161
@Throws(RuntimeException::class)
6262
fun launchCustomTabsSignIn(hostedUIOptions: HostedUIOptions) {
63+
session = client?.newSession(null)
64+
6365
launchCustomTabs(
6466
uri = createAuthorizeUri(hostedUIOptions),
6567
activity = hostedUIOptions.callingActivity,

0 commit comments

Comments
 (0)