You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I pass some data in the authInfo parameter, I expect the authInfo to be passed to the callback's request object in my controller so I can do some logic with it. Right now, it's always undefined. It's weird that if I add the handleRequest function in my guard and log the authInfo from the request there, the value is right, but for some reason inside my controller it's always undefined.
Is there an existing issue for this?
Current behavior
When I pass some data in the
authInfo
parameter, I expect theauthInfo
to be passed to the callback's request object in my controller so I can do some logic with it. Right now, it's always undefined. It's weird that if I add thehandleRequest
function in my guard and log theauthInfo
from the request there, the value is right, but for some reason inside my controller it's always undefined.Minimum reproduction code
https://github.com/ghmendonca/nestjs-auth-info
Steps to reproduce
.env
file.auth/google
and see that the log fromrequest.authInfo
is undefinedExpected behavior
NestJS Passport module should forward the
authInfo
field from the request to the controllerPackage version
10.0.3
Passport version
0.7.0
NestJS version
10.0.0
Node.js version
18.20.4
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: