Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastify-jwt

Package Overview
Dependencies
Maintainers
13
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-jwt - npm Package Compare versions

Comparing version 2.5.0 to 3.0.0

1

jwt.js

@@ -97,3 +97,2 @@ 'use strict'

cookie: cookie,
secret: secret,
sign: sign,

@@ -100,0 +99,0 @@ verify: verify

2

package.json
{
"name": "fastify-jwt",
"version": "2.5.0",
"version": "3.0.0",
"description": "JWT utils for Fastify",

@@ -5,0 +5,0 @@ "main": "jwt.js",

@@ -491,5 +491,2 @@ # fastify-jwt

### fastify.jwt.secret
For your convenience, the `secret` you specify during `.register` is made available via `fastify.jwt.secret`. `request.jwtVerify()` and `reply.jwtSign()` will wrap non-function secrets in a callback function. `request.jwtVerify()` and `reply.jwtSign()` use an asynchronous waterfall method to retrieve your secret. It's recommended that your use these methods if your `secret` method is asynchronous.
### fastify.jwt.cookie

@@ -496,0 +493,0 @@ For your convenience, `request.jwtVerify()` will look for the token in the cookies property of the decorated request. You must specify `cookieName`. Refer to the [cookie example](https://github.com/fastify/fastify-jwt#example-using-cookie) to see sample usage and important caveats.

@@ -20,3 +20,3 @@ 'use strict'

t.test('Expose jwt methods', function (t) {
t.plan(7)
t.plan(6)

@@ -34,3 +34,2 @@ const fastify = Fastify()

t.ok(fastify.jwt.options)
t.ok(fastify.jwt.secret)
t.ok(fastify.jwt.sign)

@@ -37,0 +36,0 @@ t.ok(fastify.jwt.verify)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc