@articulate/hapi-authentic

A hapi 16.x JWT/Bearer auth plugin using [@articulate/authentic](https://github.com/articulate/authentic).

Usage no npm install needed!

<script type="module">
  import articulateHapiAuthentic from 'https://cdn.skypack.dev/@articulate/hapi-authentic';
</script>

README

hapi-authentic

@articulate/hapi-authentic Build Status

A hapi 16.x JWT/Bearer auth plugin using @articulate/authentic.

Use

const Authentic = require('@articulate/hapi-authentic')
server.register(Authentic, err => {
  if (err) throw err
  server.auth.strategy('bearer', 'authentic', { issWhitelist: ['https://iss'] })
  server.route({
    method: 'GET',
    path: '/test',
    config: {
      auth: 'bearer',
      handler: (request, reply) =>
        reply()
    }
  })
})