diff --git a/src/Routes.js b/src/Routes.js index 1c300597..4e2ce7b9 100644 --- a/src/Routes.js +++ b/src/Routes.js @@ -29,16 +29,17 @@ const RedirectLandingPage = () => ; // Fake authentication module // An example from react-router v4 repository +// This will be replaced once we have redux store and sdk export const fakeAuth = { isAuthenticated: false, authenticate(cb) { this.isAuthenticated = true; - setTimeout(cb, 100); // fake async + window.setTimeout(cb, 100); // fake async }, signout(cb) { this.isAuthenticated = false; cb(); - setTimeout(cb, 100); // weird bug if async? + window.setTimeout(cb, 100); // weird bug if async? } };