@connectedcars/jwtutils
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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 { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
62421
1544
5