Files
hermione-fe/src/views/pages/auth/MsalConfig.js
andrea.terzani ae16bf4d7e tenant
2025-04-17 07:38:38 +02:00

36 lines
1.0 KiB
JavaScript

import { PublicClientApplication } from '@azure/msal-browser';
export const msalInstance = new PublicClientApplication({
auth: {
clientId: '0c51b431-65ef-40fa-89ff-f66a1c583e0d',
authority: "https://login.microsoftonline.com/f3211d0e-125b-42c3-86db-322b19a65a22/",
redirectUri: "http://localhost:5173/auth/callback", // or your deployed URL
navigateToLoginRequestUrl: false,
},
cache: {
cacheLocation: "localStorage",
storeAuthStateInCookie: false,
}
})
/*
export const msalInstance = new PublicClientApplication({
auth: {
clientId: 'd3fee0e3-49e0-4910-b0b4-805bfbd5488a',
authority: "https://login.microsoftonline.com/9dc4721e-4d54-4c40-a681-1dd740292901",
redirectUri: "http://localhost:5173/auth/callback", // or your deployed URL
navigateToLoginRequestUrl: false,
},
cache: {
cacheLocation: "localStorage",
storeAuthStateInCookie: false,
}
})
*/
export const msalrequest = {
scopes: ["User.Read", "Mail.Read"],
}