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

@types/jsonwebtoken

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jsonwebtoken - npm Package Compare versions

Comparing version 8.5.7 to 8.5.8

17

jsonwebtoken/index.d.ts

@@ -98,3 +98,3 @@ // Type definitions for jsonwebtoken 8.5

| TokenExpiredError;
export type VerifyCallback<T = JwtPayload> = (
export type VerifyCallback<T = Jwt | JwtPayload | string> = (
err: VerifyErrors | null,

@@ -136,3 +136,3 @@ decoded: T | undefined,

header: JwtHeader;
payload: JwtPayload;
payload: JwtPayload | string;
signature: string;

@@ -204,3 +204,4 @@ }

export function verify(token: string, secretOrPublicKey: Secret, options: VerifyOptions & { complete: true }): Jwt;
export function verify(token: string, secretOrPublicKey: Secret, options?: VerifyOptions): JwtPayload;
export function verify(token: string, secretOrPublicKey: Secret, options?: VerifyOptions & { complete?: false }): JwtPayload | string;
export function verify(token: string, secretOrPublicKey: Secret, options?: VerifyOptions): Jwt | JwtPayload | string;

@@ -219,3 +220,3 @@ /**

secretOrPublicKey: Secret | GetPublicKeyOrSecret,
callback?: VerifyCallback,
callback?: VerifyCallback<JwtPayload | string>,
): void;

@@ -225,3 +226,3 @@ export function verify(

secretOrPublicKey: Secret | GetPublicKeyOrSecret,
options?: VerifyOptions & { complete: true },
options: VerifyOptions & { complete: true },
callback?: VerifyCallback<Jwt>,

@@ -232,2 +233,8 @@ ): void;

secretOrPublicKey: Secret | GetPublicKeyOrSecret,
options?: VerifyOptions & { complete?: false },
callback?: VerifyCallback<JwtPayload | string>,
): void;
export function verify(
token: string,
secretOrPublicKey: Secret | GetPublicKeyOrSecret,
options?: VerifyOptions,

@@ -234,0 +241,0 @@ callback?: VerifyCallback,

{
"name": "@types/jsonwebtoken",
"version": "8.5.7",
"version": "8.5.8",
"description": "TypeScript definitions for jsonwebtoken",

@@ -80,4 +80,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonwebtoken",

},
"typesPublisherContentHash": "4d1049c64f870f985b12a8ce5157c29f488f29867f4478e836a8441924011c34",
"typesPublisherContentHash": "fa9db8bf3d45899001319a89d33c8a49d294c5214b7549967ba4033dc87cc1a3",
"typeScriptVersion": "3.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 12 Jan 2022 17:31:45 GMT
* Last updated: Mon, 17 Jan 2022 12:01:30 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

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