artsy-xapp-middleware

Node middleware that fetches an xapp token from Artsy, stores it in res.locals, and expires it.

Usage no npm install needed!

<script type="module">
  import artsyXappMiddleware from 'https://cdn.skypack.dev/artsy-xapp-middleware';
</script>

README

Artsy Xapp Middleware

Node middleware that fetches an xapp token from Artsy and stores it in sharify data, and expires it.

Use is like so...

app.use require('gravity-xapp')
  gravityUrl: 'http://artsy.net'
  clientId: '133fsa3'
  clientSecret: 'f32j13f'
  sharifyData: require('sharify').data