node-oauth / node-oauth2-server

🚀 The successor to oauthjs/oauth2-server. 🔒 Complete, compliant, maintained and well tested OAuth2 Server for node.js. Includes native async await and PKCE.
https://www.npmjs.com/package/@node-oauth/oauth2-server
MIT License
286 stars 39 forks source link

`AuthenticateOptions.scope` type is declared incorrectly #306

Closed Lordfirespeed closed 1 month ago

Lordfirespeed commented 1 month ago

AuthenticateOptions.scope is declared as string[] | undefined, but the parseScope function used to parse the option only accepts string | undefined, so an invalid_scope error is thrown when passing string[].