diff --git a/packages/medusa-plugin-auth/src/core/passport/utils/auth-routes-builder.ts b/packages/medusa-plugin-auth/src/core/passport/utils/auth-routes-builder.ts index f025b52..fd08f38 100644 --- a/packages/medusa-plugin-auth/src/core/passport/utils/auth-routes-builder.ts +++ b/packages/medusa-plugin-auth/src/core/passport/utils/auth-routes-builder.ts @@ -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);