@fastify/jwt
Advanced tools
Comparing version 6.3.1 to 6.3.2
@@ -117,2 +117,4 @@ import { | ||
decode<Decoded extends DecodePayloadType>(token: string, options?: Partial<DecoderOptions>): null | Decoded | ||
lookupToken(request: fastify.FastifyRequest, options?: FastifyJWTOptions['verify']): string | ||
} | ||
@@ -119,0 +121,0 @@ |
{ | ||
"name": "@fastify/jwt", | ||
"version": "6.3.1", | ||
"version": "6.3.2", | ||
"description": "JWT utils for Fastify", | ||
@@ -42,5 +42,5 @@ "main": "jwt.js", | ||
"@fastify/cookie": "^7.0.0", | ||
"@fastify/pre-commit": "^2.0.2", | ||
"@types/node": "^18.0.0", | ||
"fastify": "^4.0.0-rc.2", | ||
"pre-commit": "^1.2.2", | ||
"standard": "^17.0.0", | ||
@@ -47,0 +47,0 @@ "tap": "^16.0.0", |
@@ -17,3 +17,3 @@ # @fastify/jwt | ||
``` | ||
npm i @fastify/jwt --save | ||
npm i @fastify/jwt | ||
``` | ||
@@ -20,0 +20,0 @@ |
@@ -95,2 +95,3 @@ import fastify from 'fastify'; | ||
expectAssignable<Function>(app.jwt.decode) | ||
expectAssignable<Function>(app.jwt.lookupToken) | ||
expectAssignable<FastifyJWTOptions['cookie']>(app.jwt.cookie) | ||
@@ -97,0 +98,0 @@ |
Sorry, the diff of this file is not supported yet
145756
3360