Socket
Socket
Sign inDemoInstall

fast-jwt

Package Overview
Dependencies
Maintainers
9
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-jwt - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

2

package.json
{
"name": "fast-jwt",
"version": "3.1.0",
"version": "3.1.1",
"description": "Fast JSON Web Token implementation",

@@ -5,0 +5,0 @@ "author": "NearForm Ltd",

@@ -97,40 +97,40 @@ import 'node'

export interface SignerOptions {
algorithm: Algorithm
mutatePayload: boolean
expiresIn: number
notBefore: number
jti: string
aud: string | string[]
iss: string
sub: string
nonce: string
kid: string
header: JwtHeader
noTimestamp: boolean
clockTimestamp: number
algorithm?: Algorithm
mutatePayload?: boolean
expiresIn?: number
notBefore?: number
jti?: string
aud?: string | string[]
iss?: string
sub?: string
nonce?: string
kid?: string
header?: JwtHeader
noTimestamp?: boolean
clockTimestamp?: number
}
export interface DecoderOptions {
complete: boolean
checkTyp: string
complete?: boolean
checkTyp?: string
}
export interface VerifierOptions {
algorithms: Algorithm[]
complete: boolean
cache: boolean | number
cacheTTL: number
errorCacheTTL: number | ((tokenError: TokenError) => number)
allowedJti: string | RegExp | Array<string | RegExp>
allowedAud: string | RegExp | Array<string | RegExp>
allowedIss: string | RegExp | Array<string | RegExp>
allowedSub: string | RegExp | Array<string | RegExp>
allowedNonce: string | RegExp | Array<string | RegExp>
ignoreExpiration: boolean
ignoreNotBefore: boolean
maxAge: number
clockTimestamp: number
clockTolerance: number
requiredClaims: Array<string>
checkTyp: string
algorithms?: Algorithm[]
complete?: boolean
cache?: boolean | number
cacheTTL?: number
errorCacheTTL?: number | ((tokenError: TokenError) => number)
allowedJti?: string | RegExp | Array<string | RegExp>
allowedAud?: string | RegExp | Array<string | RegExp>
allowedIss?: string | RegExp | Array<string | RegExp>
allowedSub?: string | RegExp | Array<string | RegExp>
allowedNonce?: string | RegExp | Array<string | RegExp>
ignoreExpiration?: boolean
ignoreNotBefore?: boolean
maxAge?: number
clockTimestamp?: number
clockTolerance?: number
requiredClaims?: Array<string>
checkTyp?: string
}

@@ -137,0 +137,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