Skip to content

Storing authentication information between middlewares #4

@steffansluis

Description

@steffansluis

Currently, after calling node-oauth2-server handlers, some results are exposed via req.app.locals. As stated here, this persists throughout the lifetime of the application. res.locals only persists throughout the lifetime of the current request. It seems to me the second option should be used, since authentication is request specific. Is this an intentional decision?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions