{"size": 874, "ext": "js", "max_stars_repo_path": "src/authProvider.js", "max_stars_repo_name": "vikramabhisheksah/Order-Management", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/authProvider.js", "max_issues_repo_name": "vikramabhisheksah/Order-Management", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/authProvider.js", "max_forks_repo_name": "vikramabhisheksah/Order-Management", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.7058823529, "max_line_length": 91, "alphanum_fraction": 0.7196796339}

import { MsalAuthProvider, LoginType } from 'react-aad-msal';

const config = {
    auth: {
    authority: 'https://login.microsoftonline.com/directory id goes here',
    clientId: 'Your client id goes here',
    postLogoutRedirectUri: window.location.origin,
    redirectUri: window.location.origin,
    validateAuthority: true,
    navigateToLoginRequestUrl: true
    },
    cache: {
    cacheLocation: "localStorage",
    storeAuthStateInCookie: true
    }
};
// Authentication Parameters
export const authenticationParameters = {
    scopes: [
    `client id goes here/.default`
    ]
}
export const authenticationParametersGraph = {
    scopes: [
    'openid'
    ]
}
// Options
export const options = {
loginType: LoginType.Redirect,
tokenRefreshUri: window.location.origin
}
export const authProvider = new MsalAuthProvider(config, authenticationParameters, options)