Skip to content

Instantly share code, notes, and snippets.

@anton-gorbikov
Last active July 1, 2019 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anton-gorbikov/5f16f4ef4e6323cd92306033f0da0ca9 to your computer and use it in GitHub Desktop.
Save anton-gorbikov/5f16f4ef4e6323cd92306033f0da0ca9 to your computer and use it in GitHub Desktop.
let config = {
auth: {
clientId: '{{application ID, GUID}}',
authority: 'https://login.microsoftonline.com/{{tenant ID}}.onmicrosoft.com',
redirectUri: '{{registed return URL}}',
navigateToLoginRequestUrl: false
},
cache: {
cacheLocation: 'localStorage',
storeAuthStateInCookie: true
},
system: {
loadFrameTimeout: {{time in milliseconds}}
}
};
let context = new Msal.UserAgentApplication(config);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment