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

v5.1`AuthorizationOptions.scope`Breaking Change #307

Closed Lordfirespeed closed 1 month ago

Lordfirespeed commented 1 month ago

related: #305, #306

Version 5.1 changed the accepted type of AuthorizationOptions.scope from string[] to string, which is a breaking change.

dhensby commented 1 month ago

introduced in #267

The only sensible approach is to accept both strings and arrays of strings for this argument.

Lordfirespeed commented 1 month ago

Resolved by #309

jankapunkt commented 1 month ago

Will publish this with a new minor release, once we got #314 merged.