appid added

This commit is contained in:
sumedh
2025-04-17 16:32:53 +05:30
parent d92d1b8559
commit c2973ddb5e

View File

@@ -1,21 +1,18 @@
import { PublicClientApplication } from '@azure/msal-browser'; import { PublicClientApplication } from '@azure/msal-browser';
export const msalInstance = new PublicClientApplication({
auth: {
clientId: '1ddbd871-9544-4a31-97a4-2968ce08e49a', //'d3fee0e3-49e0-4910-b0b4-805bfbd5488a',
authority: 'https://login.microsoftonline.com/e0793d39-0939-496d-b129-198edd916feb/', //'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 msalInstance = new PublicClientApplication({
auth: {
clientId: '1ddbd871-9544-4a31-97a4-2968ce08e49a',
authority: "https://login.microsoftonline.com/e0793d39-0939-496d-b129-198edd916feb/",
redirectUri: "http://localhost:5173/auth/callback", // or your deployed URL
navigateToLoginRequestUrl: false,
},
cache: {
cacheLocation: "localStorage",
storeAuthStateInCookie: false,
}
})
/* /*
export const msalInstance = new PublicClientApplication({ export const msalInstance = new PublicClientApplication({
auth: { auth: {
@@ -30,6 +27,6 @@ export const msalInstance = new PublicClientApplication({
} }
}) })
*/ */
export const msalrequest = { export const msalrequest = {
scopes: ["User.Read"], scopes: ['1ddbd871-9544-4a31-97a4-2968ce08e49a/.default'] //['api://d3fee0e3-49e0-4910-b0b4-805bfbd5488a/access_as_user']
} };