import { Configuration, PopupRequest } from '@azure/msal-browser'; const TENANT_ID = process.env.NEXT_PUBLIC_AZURE_TENANT_ID || 'e519c2e6-bc6d-4fdf-8d9c-923c2f002385'; const CLIENT_ID = process.env.NEXT_PUBLIC_AZURE_CLIENT_ID || '9079054c-9620-4757-a256-23413042f1ef'; export const msalConfig: Configuration = { auth: { clientId: CLIENT_ID, authority: `https://login.microsoftonline.com/${TENANT_ID}`, redirectUri: typeof window !== 'undefined' ? `${window.location.origin}/ppt-tool/login` : 'http://localhost/ppt-tool/login', postLogoutRedirectUri: typeof window !== 'undefined' ? `${window.location.origin}/ppt-tool/login` : 'http://localhost/ppt-tool/login', }, cache: { cacheLocation: 'sessionStorage', storeAuthStateInCookie: false, }, }; export const loginRequest: PopupRequest = { scopes: ['openid', 'profile', 'email'], };