fix(client,sdk): accept empty token from parent frame
All checks were successful
arcad/edge/pipeline/head This commit looks good
All checks were successful
arcad/edge/pipeline/head This commit looks good
This commit is contained in:
parent
dc93c585eb
commit
d0b57ab15f
4
pkg/sdk/client/dist/client.js
vendored
4
pkg/sdk/client/dist/client.js
vendored
@ -3971,11 +3971,11 @@ var Edge = (() => {
|
||||
clearTimeout(timeoutId);
|
||||
if (timedOut)
|
||||
return;
|
||||
if (!message2.data || !message2.data.token) {
|
||||
if (!message2.data) {
|
||||
reject("Unexpected auth token request response !");
|
||||
return;
|
||||
}
|
||||
resolve(message2.data.token);
|
||||
resolve(message2.data?.token || "");
|
||||
};
|
||||
window.addEventListener("message", listener);
|
||||
const message = { type: EdgeAuthTokenRequest };
|
||||
|
4
pkg/sdk/client/dist/client.js.map
vendored
4
pkg/sdk/client/dist/client.js.map
vendored
File diff suppressed because one or more lines are too long
@ -148,12 +148,12 @@ export class Client extends EventTarget {
|
||||
|
||||
if (timedOut) return;
|
||||
|
||||
if (!message.data || !message.data.token) {
|
||||
if (!message.data) {
|
||||
reject("Unexpected auth token request response !");
|
||||
return;
|
||||
}
|
||||
|
||||
resolve(message.data.token);
|
||||
resolve(message.data?.token || "");
|
||||
}
|
||||
|
||||
window.addEventListener('message', listener);
|
||||
|
Loading…
Reference in New Issue
Block a user