jaredhanson / passport-http

HTTP Basic and Digest authentication strategies for Passport and Node.js.

Home Page:https://www.passportjs.org/packages/passport-http/?utm_source=github&utm_medium=referral&utm_campaign=passport-http&utm_content=about

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sessions in basic auth strategy

leepowelldev opened this issue · comments

Is the session options still applicable in basic auth strategy as I can't see anything in the code that uses this option setting. If not then the documentation is out of date. Thanks.

Setting the session option to false instructs passport not to serialize the user into the session. The relevant line of code is: https://github.com/jaredhanson/passport/blob/master/lib/passport/http/request.js#L41