Skip to content

Instantly share code, notes, and snippets.

@leonmwandiringa
Created June 13, 2019 13:24
Show Gist options
  • Save leonmwandiringa/584f31467ecdf2522d97d1c64e56b673 to your computer and use it in GitHub Desktop.
Save leonmwandiringa/584f31467ecdf2522d97d1c64e56b673 to your computer and use it in GitHub Desktop.
import { runWithAdal } from 'react-adal';
import { authContext, Authuser, authenticateUserToSevices } from '../src/auth/auth';
const DO_NOT_LOGIN = false;
runWithAdal(authContext, async () => {
await authenticateUserToSevices()
// eslint-disable-next-line
require('./indexApp.js');
},DO_NOT_LOGIN);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment