You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner. It is now read-only.
if (myMSALObj.getUser() && !myMSALObj.isCallback(window.location.hash)) {// avoid duplicate code execution on page load in case of iframe and popup window.
90
+
showWelcomeMessage();
91
+
acquireTokenAndCallMSGraph();
92
+
}
93
+
**/
94
+
95
+
// Uncomment the above code and delete the below code if you are not using browser detection
if(myMSALObj.getUser()&&!myMSALObj.isCallback(window.location.hash)){// avoid duplicate code execution on page load in case of iframe and popup window.
102
+
showWelcomeMessage();
103
+
acquireTokenRedirectAndCallMSGraph();
104
+
}
112
105
}
113
106
// Uncomment this if you are testing in Edge InPrivate, or delete
114
107
/**
115
108
else if(isEdge) {
116
109
document.getElementById("SignIn").onclick = function () {
if (myMSALObj.getUser() && !myMSALObj.isCallback(window.location.hash)) {// avoid duplicate code execution on page load in case of iframe and popup window.
113
+
showWelcomeMessage();
114
+
acquireTokenRedirectAndCallMSGraph();
115
+
}
119
116
}
120
117
**/
121
-
122
-
if(myMSALObj.getUser()&&!myMSALObj.isCallback(window.location.hash)){// avoid duplicate code execution on page load in case of iframe and popup window.
123
-
showWelcomeMessage();
124
-
acquireTokenAndCallMSGraph();
118
+
else{
119
+
if(myMSALObj.getUser()&&!myMSALObj.isCallback(window.location.hash)){// avoid duplicate code execution on page load in case of iframe and popup window.
120
+
showWelcomeMessage();
121
+
acquireTokenAndCallMSGraph();
122
+
}
123
+
}
124
+
125
+
// This function can be removed if browser detection isn't needed
0 commit comments