node-oauth2-server
node-oauth2-server copied to clipboard
Allow response override
This would also replace the continueAfterResponse
For those interested in how to do this, the source code is here: https://github.com/oauthjs/node-oauth2-server/blob/52cb49eea17a298708dbe17d71851df86ad9a020/lib/models/token-model.js#L46-L54
Just pass, allowExtendedTokenAttributes: true, as an option in the server constructor and any additional properties will populate.
Any idea how to add custom fields to a response body of a token endpoint? Details: https://github.com/oauthjs/express-oauth-server/issues/67 Source code: https://github.com/nanachimi/oauthserverjs