Skip to content

Commit a992169

Browse files
author
Sachin Maheshwari
committed
typo
1 parent e350182 commit a992169

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@ const authSetup = function () {
414414
*/
415415
function receiveMessage(e) {
416416
logger("received Event:", e);
417+
if (e.data && e.data.type && e.origin) {
418+
if (e.data.type === IframeLogoutRequestType) {
419+
host = e.origin;
420+
logout();
421+
}
422+
}
417423
if (e.data.type === "REFRESH_TOKEN") {
418424
const token = getCookie(v3JWTCookie);
419425
const failed = {

0 commit comments

Comments
 (0)