Skip to content

Commit fd2ff8b

Browse files
committed
Validate cancel type from auth redirection
1 parent 3f9d0ed commit fd2ff8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InAppBrowser.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function _checkResultAndReturnUrl(
7777
result: AuthSessionResult
7878
): Promise<AuthSessionResult> {
7979
return new Promise(function(resolve) {
80-
if (android) {
80+
if (android && result.type !== 'cancel') {
8181
android.once(
8282
AndroidApplication.activityResumedEvent,
8383
function(args: AndroidActivityEventData) {

0 commit comments

Comments
 (0)