{"_id":"jot","_rev":"18-17f8afdb49ea9e95b4ec95d860ee8ba1","name":"jot","description":"hapi JSON Web Token (JWT) authentication plugin","dist-tags":{"latest":"2.0.2"},"versions":{"0.0.1":{"name":"jot","description":"Markup DSL","keywords":["coffeescript","javascript","DSL","markup","jot"],"author":{"name":"Derek Brans"},"version":"0.0.1","licenses":[{"type":"MIT","url":"http://github.com/dbrans/jot/raw/master/LICENSE"}],"engines":{"node":">=0.2.5"},"directories":{"lib":"./lib"},"main":"./lib/main","bin":{},"homepage":"http://jotjs.org","repository":{"type":"git","url":"git://github.com/dbrans/jot.git"},"_npmJsonOpts":{"file":"/dbrans/.npm/jot/0.0.1/package/package.json","serverjs":false,"wscript":false,"contributors":false},"_id":"jot@0.0.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"d8a0f48dd2a8919a36b158aab88a0fd3034f7230","tarball":"https://registry.npmjs.org/jot/-/jot-0.0.1.tgz","integrity":"sha512-cEfWlyd6OE3DJluljNL1+dm077ZymXu53+WhCYwetJwlrEB317DM3UaAVbWvZLHsGhkXH1StPx6RJ5EfMFwtKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAT6/rLaUo+qvemgQDYQRp/D4bG1tX1TxPvrfjk0JuKUAiB348sqfRg2G8kp6DjWt0zs6QHIXxxrO4eSkBDsgz2idQ=="}]},"scripts":{}},"1.0.0":{"name":"jot","version":"1.0.0","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"https://github.com/ryanwalters/jot"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.0.0","hoek":"^3.0.4","joi":"^7.0.0","jsonwebtoken":"^5.4.1","lab":"^8.0.0"},"devDependencies":{"code":"^2.0.1","coveralls":"^2.11.4","hapi":"^11.1.1","hapi-auth-cookie":"^3.1.0","lab":"^7.3.0"},"gitHead":"c328b49a973e7b7381c0bc04ed7acae389d10a6b","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot","_id":"jot@1.0.0","_shasum":"c111d273cfb2997163c74169d363452837cb1b99","_from":".","_npmVersion":"2.7.4","_nodeVersion":"5.2.0","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"c111d273cfb2997163c74169d363452837cb1b99","tarball":"https://registry.npmjs.org/jot/-/jot-1.0.0.tgz","integrity":"sha512-jz4o9HPEjbrE+dCSi09qky+w7c3IRKg7EZJYEDqVUJ/2pu0T29NYEmjrhUuXPvq77DlJoAIY4QbKyfUtqLQ5xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCMatKQ2y3Z2P8WWWYwB/N7Zuy7+YRjM5ro/+8sHsoEQIhAOYHuyQVSYu+J0yU9awt2ev9dhLr0+ltCC2IRff+6Pvk"}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}]},"1.1.0":{"name":"jot","version":"1.1.0","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"https://github.com/ryanwalters/jot"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.0.0","hoek":"^3.0.4","joi":"^7.0.0","jsonwebtoken":"^5.4.1","lab":"^8.0.0"},"devDependencies":{"code":"^2.0.1","coveralls":"^2.11.4","hapi":"^11.1.1","hapi-auth-cookie":"^3.1.0","lab":"^7.3.0"},"gitHead":"b4d65dace39d6d3f1ee98259a7f9dbec6e0ecc63","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot","_id":"jot@1.1.0","_shasum":"cdda0a16f77f5c2bdf1cc506e7f4738760ff015c","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"cdda0a16f77f5c2bdf1cc506e7f4738760ff015c","tarball":"https://registry.npmjs.org/jot/-/jot-1.1.0.tgz","integrity":"sha512-19QADt/s5IbVpTorDALGjhAZ1CjfOM253bufA4tn6RxnxA/OBy8jahGBhKz5rbGidPMUHvVtT3oLW+PohfXp9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAF2sIMNlrvPScq6BZFygtTpj/ugIElMNRYn/heFcLG6AiEAn0KPwDppPvPo/pOX6/+x4R6fhGBUABzhivJEOJoiKDU="}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}]},"1.1.1":{"name":"jot","version":"1.1.1","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"https://github.com/ryanwalters/jot"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.0.0","hoek":"^3.0.4","joi":"^7.0.0","jsonwebtoken":"^5.4.1","lab":"^8.0.0"},"devDependencies":{"code":"^2.0.1","coveralls":"^2.11.4","hapi":"^11.1.1","hapi-auth-cookie":"^3.1.0","lab":"^7.3.0"},"gitHead":"6e861b3764dcbe07629cdef789896b268f1f10dd","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot","_id":"jot@1.1.1","_shasum":"d3b333b23107292d256d274b8cc25c6cd420be2f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"d3b333b23107292d256d274b8cc25c6cd420be2f","tarball":"https://registry.npmjs.org/jot/-/jot-1.1.1.tgz","integrity":"sha512-0JkcX+Y5RGl2bJ+xaDAj+cQfd+4XlexEbI6h9yj8manFAguq/IOL6RNgNVdV9GM2cIaVasB1yyYinMaEGqhWbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDZCsJvZxlU97QLzYN5Mbx1dZ111jcwcR4rOQ5XWyYCAiEAgkUnRiqvgv+FgQCkj1PVFXhvkL2aJjphJ1fmb6aEhdU="}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}]},"1.1.2":{"name":"jot","version":"1.1.2","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"https://github.com/ryanwalters/jot"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.1.1","hoek":"^3.0.4","joi":"^7.1.0","jsonwebtoken":"^5.4.4"},"devDependencies":{"code":"^2.1.0","coveralls":"^2.11.4","hapi":"^12.0.0","hapi-auth-cookie":"^4.0.0","lab":"^8.0.0"},"gitHead":"5a4fbc2d34b5053a5c249f216b24feb6fae2ccae","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot","_id":"jot@1.1.2","_shasum":"76db00f3341128c8a3539c6b43f02c82f0c1dce7","_from":".","_npmVersion":"2.7.4","_nodeVersion":"5.3.0","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"76db00f3341128c8a3539c6b43f02c82f0c1dce7","tarball":"https://registry.npmjs.org/jot/-/jot-1.1.2.tgz","integrity":"sha512-eKV7qESy4xZu2OCBtC405wxLK3yMOJJk5CZKo5gy4EbjGGRBStHAIrBGYXdVGrhSoE5l65G6FJUS4/fLRAanRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKk0csSJQz9IjQmPuC7zcWJk/q+zc0ZADPW2jW9ueXKAiBDjUAQekLDHvFNaPOjC9qVeGKcL1AxjFh0iGyqXiPpaA=="}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}]},"1.1.3":{"name":"jot","version":"1.1.3","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"https://github.com/ryanwalters/jot"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.1.1","hoek":"^3.0.4","joi":"^7.1.0","jsonwebtoken":"^5.4.4"},"devDependencies":{"code":"^2.1.0","coveralls":"^2.11.4","hapi":"^12.0.0","hapi-auth-cookie":"^4.0.0","lab":"^8.0.0"},"gitHead":"fe8807760fe2af166ba0342d410998a38b5ca2a8","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot","_id":"jot@1.1.3","_shasum":"6354abcff5c173fd58e784cb8ab4ab447eb3022d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"5.3.0","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"6354abcff5c173fd58e784cb8ab4ab447eb3022d","tarball":"https://registry.npmjs.org/jot/-/jot-1.1.3.tgz","integrity":"sha512-UiozuaEc4p71qtv3+CtjyHQ38TLJSd+tzM2u93/2LJnYgG0iRPGBLx58vW2/MmunPf7puuD4v/hNdGh3vWhlYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICXVFPEvYGRGvcw8mxCxOBxix6X+B4vsH2RhZFgGU0vYAiEArwa2JvAryHtyhNp8YAn4poBV7XKG2rfFP6ciX/IyRlU="}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}]},"1.2.0":{"name":"jot","version":"1.2.0","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"https://github.com/ryanwalters/jot"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.1.1","hoek":"^3.0.4","joi":"^7.1.0","jsonwebtoken":"^5.4.4"},"devDependencies":{"code":"^2.1.0","coveralls":"^2.11.4","hapi":"^12.0.0","hapi-auth-cookie":"^4.0.0","lab":"^8.0.0"},"gitHead":"63d0f47ebe595c8581a06a1484ca20441bb5288e","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot","_id":"jot@1.2.0","_shasum":"f2ae42cc83aa749e1feea56c3aa342ebba42b74b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"f2ae42cc83aa749e1feea56c3aa342ebba42b74b","tarball":"https://registry.npmjs.org/jot/-/jot-1.2.0.tgz","integrity":"sha512-Aal8jXtu4i+e0u2br4lxDeMQQGLoiOfMAmFpfnKGwTUjJkZoB2jJUkFgcfcUpnwElUXjGh4jVUjN3fcBvb/Dgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKYFumK6J5YNFNCLaNnslrzCHFTKKZpVoGwxBzBhZ91gIhAJQwggTCsSJjDv0SUlxQsaQJuZGXV2wNfFo7FCUxNl8U"}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}]},"2.0.0":{"name":"jot","version":"2.0.0","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"https://github.com/ryanwalters/jot"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.1.2","hoek":"^4.0.0","joi":"^8.0.5","jsonwebtoken":"6.1.0"},"devDependencies":{"code":"^2.2.0","coveralls":"^2.11.9","hapi":"^13.3.0","hapi-auth-cookie":"^6.1.1","lab":"^10.3.2"},"gitHead":"fabd11c5b0eac484e9840e43d939db08f9fb7285","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot","_id":"jot@2.0.0","_shasum":"765e4fc8ed7c8da1f34fd11e38627677094f8416","_from":".","_npmVersion":"2.7.4","_nodeVersion":"6.0.0","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"765e4fc8ed7c8da1f34fd11e38627677094f8416","tarball":"https://registry.npmjs.org/jot/-/jot-2.0.0.tgz","integrity":"sha512-wQTloNp0zN6BEe8yPKqCoGbyPo74kZRk7awB4UZgMdxi8yBUirupCSutBXYGT2WfzCF8HjONOI8mcBpqXhSn2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtPXce+3OrgwVsh1L+ueE/j0ubO4khiyLXF/qTBBpjvAiAnXK/TeUYjDHTkC+Em2gkgj/DXPkIJUOgnXl9bbjaziw=="}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jot-2.0.0.tgz_1461791815605_0.8031941230874509"}},"2.0.1":{"name":"jot","version":"2.0.1","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"https://github.com/ryanwalters/jot"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.1.2","hoek":"^4.0.0","joi":"^8.0.5","jsonwebtoken":"6.1.0"},"devDependencies":{"code":"^2.2.0","coveralls":"^2.11.9","hapi":"^13.3.0","hapi-auth-cookie":"^6.1.1","lab":"^10.3.2"},"gitHead":"7192379cf17212fdab3e9c15c05dd6e3b8d56b5d","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot","_id":"jot@2.0.1","_shasum":"40e87d7d67ba20293e86d20d6cdb09a47516164e","_from":".","_npmVersion":"2.7.4","_nodeVersion":"6.0.0","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"40e87d7d67ba20293e86d20d6cdb09a47516164e","tarball":"https://registry.npmjs.org/jot/-/jot-2.0.1.tgz","integrity":"sha512-Xk87CDOsCuCkTSO5fhc/TZ0loIGHx55ClEVEX/jmOy0SZiXnKTZ4ap5AizW7FovJFot8js8Pk6p6kCx64+O1Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrXJwsHuRDHFu+mTZ4vLQ0RDiuupXW2PpayKhK3dTb3AIga6dzs5Qgzb4YAkKch4zyBGVU1eMp5TpSNv/FnPhh/Eg="}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jot-2.0.1.tgz_1461792779979_0.3296540267765522"}},"2.0.2":{"name":"jot","version":"2.0.2","description":"hapi JSON Web Token (JWT) authentication plugin","main":"lib/index.js","scripts":{"test":"lab -a code -t 100 -L -v","coveralls":"lab -r lcov | ./node_modules/.bin/coveralls"},"engines":{"node":">=4.2.2"},"keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"git+https://github.com/ryanwalters/jot.git"},"license":"BSD-3-Clause","dependencies":{"boom":"^3.1.2","hoek":"^4.0.0","joi":"^8.0.5","jsonwebtoken":"6.1.0"},"devDependencies":{"code":"^2.2.0","coveralls":"^2.11.9","hapi":"^13.3.0","hapi-auth-cookie":"^6.1.1","lab":"^10.3.2"},"gitHead":"313993b338e2d8a5e68705a08ca3266cc2f9b846","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"homepage":"https://github.com/ryanwalters/jot#readme","_id":"jot@2.0.2","_shasum":"35233aa6c887a66bf6617dee35b5766a32f7bdfb","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"ryanwalters","email":"shout@ryanwalters.co"},"dist":{"shasum":"35233aa6c887a66bf6617dee35b5766a32f7bdfb","tarball":"https://registry.npmjs.org/jot/-/jot-2.0.2.tgz","integrity":"sha512-VZm51Fv5iFzN/744LuNgbMtYxyOzrB79icDQo8iV1FUoSWsZFb5HR1MLZm+9ikxIBM6SSruylip0mnnXKBmqbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfDPlkPTsfdo+v8WLBzqmBgLAf5rfjA+5mSlIRfzQ5rgIhAPh27LDf2oXR8O21/oy2AqY2+FmGE0NVOFig3/iclDUA"}]},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jot-2.0.2.tgz_1462418237880_0.5195222108159214"}}},"maintainers":[{"name":"ryanwalters","email":"shout@ryanwalters.co"}],"time":{"modified":"2022-06-19T04:49:19.917Z","created":"2011-06-23T20:43:54.666Z","0.0.1":"2011-06-23T20:43:55.015Z","1.0.0":"2015-12-16T22:29:34.189Z","1.1.0":"2015-12-20T06:36:25.544Z","1.1.1":"2015-12-20T06:48:02.004Z","1.1.2":"2016-01-05T16:48:48.888Z","1.1.3":"2016-01-07T15:27:12.694Z","1.2.0":"2016-01-08T04:52:28.127Z","2.0.0":"2016-04-27T21:16:58.164Z","2.0.1":"2016-04-27T21:33:02.219Z","2.0.2":"2016-05-05T03:17:20.346Z"},"author":{"name":"Ryan Walters"},"repository":{"type":"git","url":"git+https://github.com/ryanwalters/jot.git"},"homepage":"https://github.com/ryanwalters/jot#readme","keywords":["jot","hapi","hapijs","jwt","json web tokens","auth","authentication"],"readme":"# jot\n\n[__hapi__](http://hapijs.com/) JSON Web Token (JWT) authentication plugin\n\n[![Build Status](https://travis-ci.org/ryanwalters/jot.svg?branch=master)](https://travis-ci.org/ryanwalters/jot) [![Coverage Status](https://coveralls.io/repos/ryanwalters/jot/badge.svg?branch=master&service=github)](https://coveralls.io/github/ryanwalters/jot?branch=master)\n\nThe `'jwt'` scheme takes the following options:\n\nOption | Type | Required | Description\n------ | ---- | -------- | -----------\n`secret` | string | __Yes__ | Secret key used to compute the signature\n`algorithms` | array | | Algorithm(s) allowed to verify tokens. Defaults to `['HS256']`. Valid algorithms: `['HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'none']`\n`audience` | string | | Verify `aud` claim against this value\n`cookie` | string | | Cookie name. Defaults to `sid`. Works in tandem with [`hapi-auth-cookie`](https://github.com/hapijs/hapi-auth-cookie). Must set JWT when the cookie is set. See examples below\n`issuer` | string | | Verify `iss` claim against this value\n`token` | string | | Name of the token set in the cookie. Defaults to `token`\n`validateFunc` | function | | Function to validate the decoded token on every request\n\n_Note:_ Storing the token in a cookie is __optional__, but recommended. You can always send the token in an `Authorization` header.\n\n## Example:\n\nOr check out the sample app: [massive-hapi](https://github.com/ryanwalters/massive-hapi)\n\n```js\n/* server.js */\n\n\n// Register hapi-auth-cookie\n\nserver.register(require('hapi-auth-cookie'), (err) => {\n\n    server.auth.strategy('session', 'cookie', {\n        cookie: 'cookie-name',\n        password: 'TheMinimumLengthOfPasswordsIs32!'\n    });\n});\n\n\n// Register jot\n\nserver.register(require('jot'), (err) => {\n\n    server.auth.strategy('jwt', 'jwt', {\n        secret: 'ADifferentPasswordAlsoAtLeast32!',\n        cookie: 'cookie-name'\n    });\n\n    server.auth.default({\n        strategy: 'jwt',\n        scope: ['admin']\n    });\n});\n\n\n/* routes.js */\n\n\n// Login route\n\nserver.route({\n    method: 'POST',\n    path: '/login',\n    config: {\n        auth: false,\n        handler: (request, reply) => {\n\n            // ... validate user credentials, yada yada yada ...\n\n            // Set the token inside of the cookie\n\n            request.cookieAuth.set(Jwt.sign({\n                scope: ['admin']\n            }, 'ADifferentPasswordAlsoAtLeast32!', {\n                expiresIn: 60 * 60 * 2 // 2 hrs, but can be anything\n            }));\n\n            reply('ok!');\n        }\n    }\n});\n\n\n// Resource\n\nserver.route({\n    method: 'GET',\n    path: '/trade-secrets',\n    config: {\n        handler: (request, reply) => {\n\n            // User is already authorized, time to check out those trade secrets\n\n            reply('secrets!');\n        }\n    }\n});\n```\n\nFor more examples, check out the tests.\n\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/ryanwalters/jot/issues"},"license":"BSD-3-Clause","users":{}}