fastify-jwt
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -62,4 +62,6 @@ import * as fastify from 'fastify'; | ||
type Secret = jwt.Secret | ((request: fastify.FastifyRequest, reply: fastify.FastifyReply<unknown>, cb: (e: Error | null, secret: string | undefined) => void) => void); | ||
declare interface FastifyJWTOptions { | ||
secret: jwt.Secret | { public: jwt.Secret; private: jwt.Secret }; | ||
secret: Secret | { public: Secret; private: Secret }; | ||
decode?: jwt.DecodeOptions; | ||
@@ -66,0 +68,0 @@ sign?: jwt.SignOptions; |
{ | ||
"name": "fastify-jwt", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "JWT utils for Fastify", | ||
@@ -45,8 +45,3 @@ "main": "jwt.js", | ||
"typescript": "^3.2.2" | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
"tap" | ||
] | ||
} | ||
} |
# fastify-jwt | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) [![Build Status](https://dev.azure.com/fastify/fastify/_apis/build/status/fastify.fastify-jwt?branchName=master)](https://dev.azure.com/fastify/fastify/_build/latest?definitionId=5&branchName=master) [![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-jwt.svg)](https://greenkeeper.io/) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) | ||
@@ -5,0 +5,0 @@ JWT utils for Fastify, internally uses [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken). |
10
test.js
@@ -62,3 +62,3 @@ 'use strict' | ||
}).ready(function (error) { | ||
t.is(error, null) | ||
t.error(error) | ||
}) | ||
@@ -73,3 +73,3 @@ }) | ||
}).ready(function (error) { | ||
t.is(error, null) | ||
t.error(error) | ||
}) | ||
@@ -150,3 +150,3 @@ }) | ||
}).ready(function (error) { | ||
t.is(error, null) | ||
t.error(error) | ||
}) | ||
@@ -180,3 +180,3 @@ }) | ||
}).ready(function (error) { | ||
t.is(error, null) | ||
t.error(error) | ||
}) | ||
@@ -207,3 +207,3 @@ }) | ||
}).ready(function (error) { | ||
t.is(error, null) | ||
t.error(error) | ||
}) | ||
@@ -210,0 +210,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2092
95746