-
-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
documentation 📑Improvements or additions to documentationImprovements or additions to documentation
Description
Specify your setup
Irrelevant
Describe the bug
According to the Documentation and the Typescript typings, OAuth2Server.authenticate expects options.scope, which is of type string[]. However, in authenticate-handler.js, this scope is passedd to parseScope [source], which expects scope to be a string:
if (typeof requestedScope !== 'string') {
throw new InvalidScopeError('Invalid parameter: `scope`');
}To Reproduce
Try to pass a scope-Array to authenticate
Expected behavior
No error thrown, but instead an error would be thrown if I wouldn't pass an array.
zsapkagy
Metadata
Metadata
Assignees
Labels
documentation 📑Improvements or additions to documentationImprovements or additions to documentation