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
The passport documentation suggests that calling authenticate on passport automatically calls login. So, I believe there is no need to call login again.
Note: passport.authenticate() middleware invokes req.login() automatically. This function is primarily used when users sign up, during which req.login() can be invoked to automatically log in the newly registered user.
The text was updated successfully, but these errors were encountered:
In the starter package, I found the below code:
The passport documentation suggests that calling authenticate on passport automatically calls login. So, I believe there is no need to call login again.
The text was updated successfully, but these errors were encountered: