Thanks for an awesome tutorial!
One note for anyone who encounters the same issue I did for the logout functionality.
I receieved the following error log when implementing per the article: Error: req#logout requires a callback function
Error: req#logout requires a callback function
Passing the res.redirect('/) as a callback to the req.logout method call fixed this.
res.redirect('/)
req.logout
@Get('/logout') logout(@Request() req, @Res() res: Response) { req.logout(() => { res.redirect('/'); }); }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for an awesome tutorial!
One note for anyone who encounters the same issue I did for the logout functionality.
I receieved the following error log when implementing per the article:
Error: req#logout requires a callback functionPassing the
res.redirect('/)as a callback to thereq.logoutmethod call fixed this.