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

fastify-jwt

Package Overview
Dependencies
Maintainers
8
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 0.9.2 to 0.9.3

2

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

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

@@ -344,2 +344,4 @@ # fastify-jwt

const fastify = require('fastify')()
const jwt = require('fastify-jwt')
const request = require('request')

@@ -384,3 +386,3 @@ fastify.register(jwt, {

if (err) fastify.log.error(err)
fastify.log.info(`JWT token is ${body}`)
fastify.log.info(`JWT token is ${body.token}`)

@@ -392,3 +394,3 @@ // verify JWT

'Content-Type': 'application/json',
authorization: 'Bearer ' + sign.token
authorization: 'Bearer ' + body.token
},

@@ -399,3 +401,3 @@ uri: 'http://localhost:' + fastify.server.address().port + '/verify',

if (err) fastify.log.error(err)
fastify.log.info(`JWT verified. Foo is ${body.bar}`)
fastify.log.info(`JWT verified. Foo is ${body.foo}`)
})

@@ -402,0 +404,0 @@ })

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