Skip to content
Permalink
Browse files

fix(auth): redirect to learn after sign in (#37114)

  • Loading branch information...
raisedadead authored and ahmadabdolsaheb committed Oct 8, 2019
1 parent 23a3287 commit 20ca046a2a338d39db15b480974877b747837073
@@ -180,7 +180,7 @@ function createGetPasswordlessAuth(app) {
'success',
'Success! You have signed in to your account. Happy Coding!'
);
return res.redirectWithFlash(`${homeLocation}`);
return res.redirectWithFlash(`${homeLocation}/learn`);
})
.subscribe(() => {}, next)
);
@@ -112,7 +112,7 @@ export const createPassportCallbackAuthenticator = (strategy, config) => (
if (!user || !userInfo) {
return res.redirect('/signin');
}
const redirect = `${homeLocation}/`;
const redirect = `${homeLocation}/learn`;

const { accessToken } = userInfo;
const { provider } = config;
@@ -3,7 +3,7 @@ import { homeLocation, apiLocation } from '../../config/env';

const { clientID, clientSecret, domain } = auth0;

const successRedirect = `${homeLocation}/`;
const successRedirect = `${homeLocation}/learn`;
const failureRedirect = `${homeLocation}/signin`;

export default {

0 comments on commit 20ca046

Please sign in to comment.
You can’t perform that action at this time.