Skip to content

Commit

Permalink
Merge 5196272 into 104161b
Browse files Browse the repository at this point in the history
  • Loading branch information
Akinmyde committed May 20, 2019
2 parents 104161b + 5196272 commit c756f55
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions server/controllers/auth.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,19 +195,13 @@ const socialRedirect = async (req, res) => {
return res.redirect(`${process.env.FRONTEND_URL}/auth/social?error=${400}`);
}

const {
id,
email,
is_admin: isAdmin,
is_reviewer: isReviewer,
is_activated: isActivated,
} = req.user;
const { id, email, is_admin: isAdmin, is_reviewer: isReviewer } = req.user;
const token = await authHelper.encode({
id,
email,
isAdmin,
isReviewer,
isActivated,
isActivated: true,
});
return res.redirect(`${process.env.FRONTEND_URL}/auth/social?${token}`);
};
Expand Down

0 comments on commit c756f55

Please sign in to comment.