Giter VIP home page Giter VIP logo

hapi-api-secret-key's People

Contributors

justin-lovell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

truonglvx heygul

hapi-api-secret-key's Issues

Readme lacking information

Hi,

I think that I want to use this package.. but the instructions are kind of confusing. From the current readme:

var server = new Hapi.Server();

// ... usual stuff

var configOptions = {
  secrets: ['secret', 'secret2']
};

server.register(
  {
    register: ProtectApiPlugin.plugin,
    options: pluginOptions
  },
  function (err, done) {
    if (err) {
      throw err;
    }

    server.start(done);
  }
);

I have a couple questions:

  1. Why are configOptions options defined but not passed in?
  2. Why is there a done function passed to server.start?
  3. Are there are any actual options that can be passed in or is it just an array of acceptable secrets?

Thanks! In the mean time I guess I'll try it out, but if you don't mind answer, that would be greatly appreciated.

Hapi v17 support

Will this plugin be supported in hapi v17? It's listed as an official plugin in the hapi website.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.