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:
@ -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);
|
||||
|
Reference in New Issue
Block a user