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
Since validate function is being considered as promise don't send callback function of passport. Because callback function is called from after validate function completed Ref: passport.strategy.ts.
Moreover, I don't understand how to pass info (3rd parameter of callback). Since its being used for authInfo field of request object in auth.guard.ts file.
The text was updated successfully, but these errors were encountered:
vimalraj-a
changed the title
Don't pass callback function if validate function handled by Promise
Not able to pass info object from Custom Passport Stategy
Jun 19, 2019
Since validate function is being considered as promise don't send callback function of passport. Because callback function is called from after validate function completed Ref:
passport.strategy.ts
.Moreover, I don't understand how to pass
info
(3rd parameter of callback). Since its being used forauthInfo
field of request object inauth.guard.ts
file.passport/lib/passport/passport.strategy.ts
Lines 14 to 24 in 8acdc04
passport/lib/auth.guard.ts
Lines 82 to 89 in 8acdc04
The text was updated successfully, but these errors were encountered: