Auth0 Integration

Hi, im developing right now this solution.

Already create the Custom Social Connection for Patreon, and i send the Get request and receive the code, all it needs to finish is the Function Call Back to send the Token Code.

I’m Trying this (code below), but dosent work.

If it works with our help, we can make a tutorial and in Few Steps, every Blogger User (many patreon creators) can Log users and Authenticated with not Server-side installation.

function(accessToken, ctx, cb) {
  request.get('https://www.patreon.com/api/oauth2/api/current_user/campaigns', {
    headers: {
      'Authorization': 'Bearer ' + accessToken
    }
  }, function(e, r, b) {
    if (e) return cb(e);
    if (r.statusCode !== 200) return cb(new Error('StatusCode: ' + r.statusCode));
    var profile = JSON.parse(b);
    cb(null, profile);
  })

}

@phildini @tal