Am just doing msal.logout() and it redirects to logout screen and then ask for login and then after login it navigates to www.office.com , How can I just stop all redirections after logout.
Here is the config
export const msalConfig: Configuration = {
auth: {
clientId: "xxxxxx",
authority: "https://login.microsoftonline.com/xxx",
redirectUri: `http://localhost:3000`,
postLogoutRedirectUri: `https://localhost:3000/logout`
}
};
import { IMsalContext, useMsal } from "@azure/msal-react";
const { instance } = useMsal();
export function handleLogout(instance: any) {
instance.logout(endSessionRequest); //This logouts and then ask for login and then go to www.office.com which is not configured anywhere in msalConfig
}
export const endSessionRequest: EndSessionRequest = {
postLogoutRedirectUri: `https://localhost:3000/logout`
};
Note : This is the redirecturl after login click which contains www.office.com