@fastify/jwt
Advanced tools
Comparing version 6.3.2 to 6.3.3
@@ -68,2 +68,3 @@ import { | ||
maxAge: number | string; | ||
onlyCookie: boolean; | ||
} | ||
@@ -70,0 +71,0 @@ |
{ | ||
"name": "@fastify/jwt", | ||
"version": "6.3.2", | ||
"version": "6.3.3", | ||
"description": "JWT utils for Fastify", | ||
@@ -36,3 +36,3 @@ "main": "jwt.js", | ||
"@lukeed/ms": "^2.0.0", | ||
"fast-jwt": "^1.5.1", | ||
"fast-jwt": "^1.7.0", | ||
"fastify-plugin": "^4.0.0", | ||
@@ -42,3 +42,3 @@ "steed": "^1.1.3" | ||
"devDependencies": { | ||
"@fastify/cookie": "^7.0.0", | ||
"@fastify/cookie": "^8.1.0", | ||
"@fastify/pre-commit": "^2.0.2", | ||
@@ -49,4 +49,3 @@ "@types/node": "^18.0.0", | ||
"tap": "^16.0.0", | ||
"tsd": "^0.22.0", | ||
"typescript": "^4.5.5" | ||
"tsd": "^0.24.1" | ||
}, | ||
@@ -58,3 +57,7 @@ "tsd": { | ||
"access": "public" | ||
} | ||
}, | ||
"pre-commit": [ | ||
"lint", | ||
"test" | ||
] | ||
} |
@@ -35,3 +35,3 @@ # @fastify/jwt | ||
fastify.listen(3000, err => { | ||
fastify.listen({ port: 3000 }, err => { | ||
if (err) throw err | ||
@@ -238,3 +238,3 @@ }) | ||
fastify.listen(3000, err => { | ||
fastify.listen({ port: 3000 }, err => { | ||
if (err) throw err | ||
@@ -296,3 +296,3 @@ }) | ||
fastify.listen(3000, err => { | ||
fastify.listen({ port: 3000 }, err => { | ||
if (err) throw err | ||
@@ -355,3 +355,3 @@ }) | ||
fastify.listen(3000, err => { | ||
fastify.listen({ port: 3000 }, err => { | ||
if (err) throw err | ||
@@ -378,3 +378,3 @@ }) | ||
fastify.listen(3000, (err) => { | ||
fastify.listen({ port: 3000 }, (err) => { | ||
if (err) { | ||
@@ -608,3 +608,3 @@ throw err | ||
fastify.listen(3000, err => { | ||
fastify.listen({ port: 3000 }, err => { | ||
if (err) throw err | ||
@@ -686,3 +686,3 @@ }) | ||
fastify.listen(3000, function (err) { | ||
fastify.listen({ port: 3000 }, function (err) { | ||
if (err) fastify.log.error(err) | ||
@@ -754,3 +754,3 @@ fastify.log.info(`Server live on port: ${fastify.server.address().port}`) | ||
fastify.listen(3000) | ||
fastify.listen({ port: 3000 }) | ||
``` | ||
@@ -757,0 +757,0 @@ |
@@ -40,3 +40,4 @@ import fastify from 'fastify'; | ||
maxAge: '1 hour', | ||
extractToken: (request) => 'token' | ||
extractToken: (request) => 'token', | ||
onlyCookie: false | ||
}, | ||
@@ -43,0 +44,0 @@ decode: { |
Sorry, the diff of this file is too big to display
148904
7
3459
Updatedfast-jwt@^1.7.0