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.