Socket
Socket
Sign inDemoInstall

@connectedcars/jwtutils

Package Overview
Dependencies
Maintainers
13
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connectedcars/jwtutils - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "@connectedcars/jwtutils",
"version": "2.0.0",
"version": "2.0.1",
"description": "Zero dependency JWT encoding/decoding for Node",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -63,2 +63,8 @@ // TypeScript Version: 3.0

export interface RevokedToken {
id: number | string
jti: string
revokedAt: Date
}
export class JwtServiceAuth {

@@ -77,3 +83,3 @@ constructor(httpRequestHandler?: (method: string, url: string, headers: object, body: string | Buffer) => Promise<HttpHandlerResponse>, options?: { endpoint?: string })

export function JwtAuthMiddleware(pubKeys: any, revokedTokens: Record<string, Date>, audiences: string[], mapper: (user: any) => void, options?: JwtAuthMiddlewareOptions): (request: any, response: any, next: () => void) => void
export function JwtAuthMiddleware(pubKeys: any, revokedTokens: Record<string, RevokedToken>, audiences: string[], mapper: (user: any) => void, options?: JwtAuthMiddlewareOptions): (request: any, response: any, next: () => void) => void

@@ -80,0 +86,0 @@ export interface JwkKeysOptions {

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