import { PublicClientApplication } from "@azure/msal-browser";

export const msalConfig = {
  auth: {
    clientId: "3c846e71-9609-40e1-b458-0eb805e21b9f",
    authority: "https://login.microsoftonline.com/3fd97ea7-b124-41f1-855f-52d8ac3b16c7",
    redirectUri: "http://localhost:3000/auth-response",
    postLogoutRedirectUri: "http://localhost:3000/auth-response"
  },
  cache: {
    cacheLocation: "localStorage",
    storeAuthStateInCookie: true
  }
};

export const loginRequest = {
  scopes: ["User.Read"]
};
log("Initializing MSAL...");
export const msalInstance = new PublicClientApplication(msalConfig);
log("MSAL instance created:", msalInstance);
