node-oauth2-server icon indicating copy to clipboard operation
node-oauth2-server copied to clipboard

Array.isArray instead of instanceof

Open msupra opened this issue 5 years ago • 0 comments

Hi In handlers/token-handler.js, you use instanceof at line 145:

if (!(client.grants instanceof Array)) {

This causes my grants array to fail, even though it is an array. Can you maybe change it to:

if (!(Array.isArray(client.grants))) {

Regards Morne

msupra avatar Jan 06 '21 16:01 msupra