node-oauth2-server
node-oauth2-server copied to clipboard
Array.isArray instead of instanceof
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