azure-ad-verify-token
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -0,0 +0,0 @@ import { CacheItem } from './interfaces.js'; |
@@ -0,0 +0,0 @@ import { getConfig } from './config.js'; |
@@ -0,0 +0,0 @@ import { Config } from './interfaces.js'; |
@@ -0,0 +0,0 @@ /** |
export { getConfig, setConfig } from './config.js'; | ||
export { verify } from './verify.js'; | ||
export { Config, VerifyOptions } from './interfaces.js'; |
export { getConfig, setConfig } from './config.js'; | ||
export { verify } from './verify.js'; |
@@ -0,0 +0,0 @@ /** |
export {}; |
@@ -1,2 +0,1 @@ | ||
import jwt from 'jsonwebtoken'; | ||
import { VerifyOptions } from './interfaces.js'; | ||
@@ -9,2 +8,2 @@ /** | ||
*/ | ||
export declare function verify(token: string, options: VerifyOptions): Promise<string | jwt.JwtPayload>; | ||
export declare function verify(token: string, options: VerifyOptions): Promise<string | import("jsonwebtoken").JwtPayload>; |
@@ -1,2 +0,2 @@ | ||
import jwt from 'jsonwebtoken'; | ||
import { decode as jwtDecode, verify as jwtVerify } from 'jsonwebtoken'; | ||
import fetch from 'node-fetch'; | ||
@@ -51,3 +51,3 @@ import getPem from 'rsa-pem-from-mod-exp'; | ||
try { | ||
decoded = jwt.decode(token, { complete: true, json: true }); | ||
decoded = jwtDecode(token, { complete: true, json: true }); | ||
kid = decoded.header.kid; | ||
@@ -61,3 +61,3 @@ if (!kid) { | ||
} | ||
return getPublicKey(jwksUri, kid).then((key) => jwt.verify(token, key, { | ||
return getPublicKey(jwksUri, kid).then((key) => jwtVerify(token, key, { | ||
algorithms: ['RS256'], | ||
@@ -64,0 +64,0 @@ audience, |
{ | ||
"name": "azure-ad-verify-token", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Verify JWT issued by Azure Active Directory B2C.", | ||
@@ -41,3 +41,2 @@ "keywords": [ | ||
"prepublishOnly": "npm run build", | ||
"release": "standard-version", | ||
"format": "prettier --write ." | ||
@@ -62,3 +61,2 @@ }, | ||
"pretty-quick": "^3.1.3", | ||
"standard-version": "^9.5.0", | ||
"ts-jest": "^29.0.5", | ||
@@ -65,0 +63,0 @@ "ts-node": "^10.9.1", |
@@ -0,0 +0,0 @@ [![NPM Version](https://badge.fury.io/js/azure-ad-verify-token.svg)](https://badge.fury.io/js/azure-ad-verify-token) |
Sorry, the diff of this file is not supported yet
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
14
12198
293