@connectedcars/jwtutils
Advanced tools
Comparing version 1.0.24 to 1.0.25
{ | ||
"name": "@connectedcars/jwtutils", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "Zero dependency JWT encoding/decoding for Node", | ||
@@ -42,2 +42,3 @@ "main": "src/index.js", | ||
"coveralls": "^3.0.6", | ||
"dtslint": "^0.9.8", | ||
"eslint": "^6.5.1", | ||
@@ -49,3 +50,3 @@ "eslint-config-prettier": "^6.3.0", | ||
"microtime": "^3.0.0", | ||
"mocha": "^6.2.1", | ||
"mocha": "^8.0.1", | ||
"nyc": "^14.1.1", | ||
@@ -56,4 +57,3 @@ "prettier": "^1.18.2", | ||
"typescript": "^3.6.3", | ||
"unexpected": "^11.8.0", | ||
"dtslint": "^0.9.8" | ||
"unexpected": "^11.8.0" | ||
}, | ||
@@ -60,0 +60,0 @@ "nyc": { |
@@ -77,1 +77,17 @@ // TypeScript Version: 3.0 | ||
export function JwtAuthMiddleware(pubKeys: any, audiences: string[], mapper: (user: any) => void, options?: JwtAuthMiddlewareOptions): (request: any, response: any, next: () => void) => void | ||
export interface JwkKeysOptions { | ||
defaultAlgoritms?: string[] | ||
[x: string]: any // Allow any other fields | ||
} | ||
export class PubkeysHelper { | ||
public fetchJwkKeys: (url: string, options?: JwkKeysOptions) => Promise<any> | ||
constructor( | ||
httpRequestHandler?: ( | ||
method: string, | ||
url: string, | ||
headers: any, | ||
body: Buffer | string | ||
) => Promise<any> | ||
) | ||
} |
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
50264
1299