oauthjs / express-oauth-server

Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with express in node.js
MIT License
484 stars 384 forks source link

add oauth response under continueMiddleware #104

Closed mdavies-solsys closed 4 years ago

mdavies-solsys commented 4 years ago

Adds the oauth server response to the res.locals.oauth object when the continueMiddleware option is used. This will allow simple overrides that require continueMiddleware to still have access to the response that was worked on, allowing the developer to use functions similar to the handleResponse to quickly build the express response.