# Auth0 Integration

**URL:** <https://www.patreondevelopers.com/t/auth0-integration/200>\
**Category:** Uncategorized\
**Created:** [January 10, 2018, 1:58pm UTC](https://www.patreondevelopers.com/t/auth0-integration/200 "2018-01-10T13:58:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![azcotic](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@azcotic](https://www.patreondevelopers.com/u/azcotic)\
**Post date:** [October 18, 2018, 5:02am UTC](https://www.patreondevelopers.com/t/auth0-integration/200/5 "2018-10-18T05:02:05Z")

</div>

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

---

_[View the full topic](https://www.patreondevelopers.com/t/auth0-integration/200)._
