🚀 The successor to oauthjs/oauth2-server. 🔒 Complete, compliant, maintained and well tested OAuth2 Server for node.js. Includes native async await and PKCE.
If a request is received with no scope in the request body, then the scope argument to validateScope is undefined instead of an array. This change updates the typings to be consistent with that behaviour.
Summary
If a request is received with no scope in the request body, then the
scope
argument tovalidateScope
is undefined instead of an array. This change updates the typings to be consistent with that behaviour.Linked issue(s)
resolves #264
Involved parts of the project
https://github.com/node-oauth/node-oauth2-server/blob/v5.0.0/lib/utils/scope-util.js#L10-L12
Added tests?
n/a
OAuth2 standard
n/a
Reproduction
See issue.