Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Feb 12, 2024
1 parent c5b9e71 commit 4cded00
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ function successActionHandlerFactory(
) {
const returnAccessToken = req.query.returnAccessToken == 'true';
const redirectUrl = (req.query.redirectTo ? req.query.redirectTo : defaultRedirect) as string;
const isProdOrStaging = process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'staging'
const originHost =
isProdOrStaging ? req.get('referer') : undefined;
const isProdOrStaging = process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'staging';
const originHost = isProdOrStaging ? req.get('referer') : undefined;

if (returnAccessToken) {
return (req: Request, res: Response) => {
Expand Down

0 comments on commit 4cded00

Please sign in to comment.