jaredhanson/passport-http-bearer

Optional authorization

pronebird opened this issue · 2 comments

Is it possible to have endpoints with optional authorization? For example, when if bearer token is provided, we pick the corresponding user for it, if not, we let the next callback in chain to handle that, e.g. no req.user initialized. I need it for endpoints on API that return personalized results when user authorized.

@jaredhanson thanks I didn't know about that.