node-auth0
node-auth0 copied to clipboard
getUsers is forced to be serial
I was trying to use a parallel job to grab pages of users, it turns out you can't send in a page number option as I would have expected because it just gets removed in favor of "nextPageLink". I want to be able to grab page number X as I would have expected from the API docs https://auth0.com/docs/api/v2#!/Users/get_users.
lib/api.js
api.getUsers = function(accessToken, options, done) {
...
if(options.page){
nextPageLink = options.page;
delete options.page;
}
This is already implemented in V2 (still in beta). See the usage info.