Passport v0.5.0 Release Notes

Release Date: 2021-09-23 // over 2 years ago
  • ๐Ÿ”„ Changed

    • initialize() middleware extends request with login(), logIn(), logout(), logOut(), isAuthenticated(), and isUnauthenticated() functions.

    โœ‚ Removed

    • login(), logIn(), logout(), logOut(), isAuthenticated(), and isUnauthenticated() functions no longer added to http.IncomingMessage.prototype.

    ๐Ÿ›  Fixed

    • userProperty option to initialize() middleware only affects the current request, rather than all requests processed via singleton Passport instance, eliminating a race condition in situations where initialize() middleware is ๐Ÿ‘‰ used multiple times in an application with userProperty set to different values.

    ๐Ÿš€ [Unreleased]: https://github.com/jaredhanson/passport/compare/v0.6.0...HEAD