From 05c552c3439e0d73ff5fcf0f1c992a7d76089048 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 25 Jan 2019 11:51:20 +0100 Subject: [PATCH] MOBILE-2844 mac: Use inappbrowser for oauth in Mac --- src/core/login/providers/helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/login/providers/helper.ts b/src/core/login/providers/helper.ts index 5c51f6aae..ff9d6c58d 100644 --- a/src/core/login/providers/helper.ts +++ b/src/core/login/providers/helper.ts @@ -647,8 +647,8 @@ export class CoreLoginHelperProvider { loginUrl += '&oauthsso=' + params.id; - if (this.appProvider.isLinux()) { - // In Linux desktop apps, always use embedded browser. + if (this.appProvider.isLinux() || this.appProvider.isMac()) { + // In Linux and Mac desktop apps, always use embedded browser. this.utils.openInApp(loginUrl); } else { // Always open it in browser because the user might have the session stored in there.