Skip to content

Commit c8d4852

Browse files
authored
Merge pull request #20 from proyecto26/feature/openauth-cancel-type
Validate cancel type from auth redirection
2 parents 3f9d0ed + fd2ff8b commit c8d4852

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)