Skip to content

Commit 1cf4b67

Browse files
author
Sachin Maheshwari
committed
iframe refresh condition
1 parent bdff559 commit 1cf4b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ const authSetup = function () {
423423
logout();
424424
}
425425
}
426-
if (e.data.type === "REFRESH_TOKEN") {
426+
if (e.data && e.data.type && e.data.type === "REFRESH_TOKEN") {
427427
const token = getCookie(v3JWTCookie);
428428
const failed = {
429429
type: "FAILURE"

0 commit comments

Comments
 (0)