0.1.1 • Published 5 years ago

bs-cookie-session v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

bs-cookie-session

Barebones BuckleScript-bindings for cookie-session to be used with bs-express

These bindings are currently very barebones, so feel free to contribute!

Getting started

Example

open Express;

let app = express();

App.use(
  app,
  CookieSession.make(
    ~name="name",
    ~keys=["key1", "key2"],
    ~secret="somesecret",
  ),
);

// etc

Installation

npm i -S bs-cookie-session

Configuring

Add bs-cookie-session as a dependency to your bsconfig.json

"bs-dependencies": [
  "bs-express",
  // other dependencies
],

License

MIT