Skip to content

Commit

Permalink
populate req.user if not set (#110)
Browse files Browse the repository at this point in the history
* populate req.user if not set

* improvement

---------

Co-authored-by: Tsvetan Nikolov <[email protected]>
  • Loading branch information
tsvetann and Tsvetan Nikolov authored Nov 9, 2023
1 parent 979ad43 commit bd1d238
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export function passportAuthRoutesBuilder({
return res.status(401).json({ message: options.msg });
}
}
req.user ??= user;
return callbackHandler(req, res);
}
)(req, res, next);
Expand Down

1 comment on commit bd1d238

@vercel
Copy link

@vercel vercel bot commented on bd1d238 Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

medusa-plugins – ./

medusa-plugins.vercel.app
medusa-plugins-git-main-adrien2p.vercel.app
medusa-plugins-adrien2p.vercel.app

Please sign in to comment.