Skip to content

Commit 105b5e0

Browse files
Fix android logout (#9398) (#9403)
(cherry picked from commit 1a563a7) Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
1 parent 87b6c31 commit 105b5e0

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

app/managers/intune_manager/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export class IntuneManagerSingleton {
9292
*/
9393
async enrollServer(serverUrl: string, identity: MSALIdentity): Promise<void> {
9494
if (!Intune) {
95-
logWarning('IntuneManager: Cannot enroll in MAM - Intune library not available');
9695
return;
9796
}
9897

@@ -112,7 +111,6 @@ export class IntuneManagerSingleton {
112111
*/
113112
async unenrollServer(serverUrl: string, doWipe: boolean): Promise<void> {
114113
if (!Intune) {
115-
logWarning('IntuneManager: Cannot unenroll - Intune library not available');
116114
return;
117115
}
118116

app/managers/session_manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ export class SessionManagerSingleton {
112112

113113
const activeServerUrl = await DatabaseManager.getActiveServerUrl();
114114
const activeServerDisplayName = await DatabaseManager.getActiveServerDisplayName();
115-
await terminateSession(serverUrl, removeServer);
116-
SecurityManager.removeServer(serverUrl);
117115

118116
// We do not unenroll with Wipe as we already removed all the data during terminateSession
119117
await IntuneManager.unenrollServer(serverUrl, false);
118+
await terminateSession(serverUrl, removeServer);
119+
SecurityManager.removeServer(serverUrl);
120120

121121
if (activeServerUrl === serverUrl) {
122122
let displayName = '';

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)