Array.isArray instead of instanceof
msupra opened this issue · comments
msupra commented
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