2.0.4 • Published 8 years ago

hapi-devine-auth v2.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hapi-devine-auth

Description

šŸ”§ This Hapi plugin adds authentication options to request, reply and server

Install hapi-devine-auth

yarn add hapi-devine-auth

Usage

register this module as a plugin in Hapi

server.register({

  register: require(`hapi-devine-auth`),

  options: {
    issuer: 'http://localhost:3000', // token issuer (required)
    secret: 'uiuGIU67383tuihiueeeuoih3368982676jhvuygoioo', // token secret (required)
    authModel: () => require(`mongoose`).models.User; // function that returns a valid auth Model (1 scope field, 1 password field, >= 1 login fields)
  }

}, pluginHandler);

License

MIT

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago