Skip to content

Commit 9ddb266

Browse files
author
sachin-maheshwari
authored
Merge pull request #105 from topcoder-platform/test-lib
fetch cookie value dynamically in iframe communication
2 parents 84fab13 + e21bcb0 commit 9ddb266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connector-wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const proxyCall = function () {
4949
if (safeFormat) {
5050
window.removeEventListener('message', receiveMessage)
5151
if (e.data.type === "SUCCESS") {
52-
token ? resolve({ token: token }) : reject("v3jwt cookie not found")
52+
getToken('v3jwt') ? resolve({ token: getToken('v3jwt') }) : reject("v3jwt cookie not found")
5353
} else {
5454
reject("unable to get refesh token")
5555
}

0 commit comments

Comments
 (0)