Changelog
[0.7.0] - 2023-11-27
req.authInfo
by default when using the assignProperty
option to
authenticate()
middleware. This makes the behavior the same as when not using
the option, and can be disabled by setting authInfo
option to false
.Changelog
[0.6.0] - 2022-05-20
authenticate()
, req#login
, and req#logout
accept a
keepSessionInfo: true
option to keep session information after regenerating
the session.req#login()
and req#logout()
regenerate the the session and clear session
information by default.req#logout()
is now an asynchronous function and requires a callback
function as the last argument.Changelog
[0.5.3] - 2022-05-16
initialize()
middleware extends request with login()
, logIn()
,
logout()
, logOut()
, isAuthenticated()
, and isUnauthenticated()
functions
again, reverting change from 0.5.1.Changelog
[0.5.2] - 2021-12-16
passport@0.4.x
or earlier (such as passport-azure-ad
), which were
broken by the removal of private variables in passport@0.5.1
.Changelog
[0.5.1] - 2021-12-15
authenticate()
middleware, rather than initialize()
middleware, extends
request with login()
, logIn()
, logout()
, logOut()
, isAuthenticated()
,
and isUnauthenticated()
functions.Changelog
[0.5.0] - 2021-09-23
initialize()
middleware extends request with login()
, logIn()
,
logout()
, logOut()
, isAuthenticated()
, and isUnauthenticated()
functions.login()
, logIn()
, logout()
, logOut()
, isAuthenticated()
, and
isUnauthenticated()
functions no longer added to http.IncomingMessage.prototype
.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.