Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
5.6.3
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
Use of both account and onRedirectNavigate in logoutRedirect throws an exception in emitEvent as the message passed to this.broadcastChannel.postMessage includes the function onRedirectNavigate.
Error Message
ERROR DOMException: Function object could not be cloned.
emitEvent EventHandler.mjs:69
logout RedirectClient.mjs:396
logoutRedirect StandardController.mjs:769
logoutRedirect PublicClientApplication.mjs:184
handleLogout +page.svelte:33
handle_event_propagation events.js:278
event_handle render.js:249
unmount render.js:258
update_reaction runtime.js:259
update_effect runtime.js:468
create_effect effects.js:138
component_root effects.js:276
_mount render.js:173
mount render.js:68
Svelte4Component legacy-client.js:116
<anonymous> legacy-client.js:55
initialize client.js:632
navigate client.js:1859
start client.js:382
async* (index):24
promise callback* (index):23
[+page.svelte:41:11](http://localhost:5173/src/routes/+page.svelte)
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
const msalConfig = {
auth: {
clientId: CLIENT_ID,
authority: `https://login.microsoftonline.com/${TENANT_ID}`,
}
};
Relevant Code Snippets
const account = msalInstance.getAccount({ homeAccountId: accountId });
return msalInstance.logoutRedirect({
account,
onRedirectNavigate: url => {
return false;
}
}).catch(error => {
console.log('ERROR', error);
});
Reproduction Steps
Call logoutRedirect with both account and onRedirectNavigate set.
Expected Behavior
...an exception to not be thrown and the logout to continue onto the IdP.
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Firefox
Regression
No response
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
5.6.3
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
Use of both
accountandonRedirectNavigateinlogoutRedirectthrows an exception inemitEventas themessagepassed tothis.broadcastChannel.postMessageincludes the functiononRedirectNavigate.Error Message
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Call
logoutRedirectwith bothaccountandonRedirectNavigateset.Expected Behavior
...an exception to not be thrown and the logout to continue onto the IdP.
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Firefox
Regression
No response