node-auth0 icon indicating copy to clipboard operation
node-auth0 copied to clipboard

getUsers is forced to be serial

Open shortjared opened this issue 11 years ago • 1 comments

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;
    }

shortjared avatar Nov 04 '15 01:11 shortjared

This is already implemented in V2 (still in beta). See the usage info.

ngonzalvez avatar Nov 30 '15 18:11 ngonzalvez