introduce data.type=config_info for the new postMessage in auth

This commit is contained in:
jothisubaramaniam
2020-11-25 16:28:16 -05:00
parent 7e49365080
commit 039970d710
3 changed files with 4 additions and 2 deletions
@@ -53,7 +53,7 @@ export const postMessageResponse = (
const script = `
var authResponse = decodeURIComponent('${base64Data}');
var origin = decodeURIComponent('${base64Origin}');
var originInfo = {'targetOrigin': origin};
var originInfo = {'type': 'config_info', 'targetOrigin': origin};
(window.opener || window.parent).postMessage(originInfo, '*');
(window.opener || window.parent).postMessage(JSON.parse(authResponse), origin);
window.close();