Skip to content

Conversation

@dhensby
Copy link
Contributor

@dhensby dhensby commented Nov 14, 2023

Summary

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.

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.

jankapunkt and others added 2 commits November 7, 2023 10:49
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.
@jankapunkt jankapunkt changed the base branch from master to development November 18, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typings for validateScope don't correctly reflect that scope arg can be undefined

3 participants