@upandgo/verify-cognito-token
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -32,2 +32,3 @@ "use strict"; | ||
const jwk_to_pem_1 = __importDefault(require("jwk-to-pem")); | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
class TokenVerificator { | ||
@@ -40,3 +41,3 @@ constructor(cognitoConfig) { | ||
const url = `${cognitoIssuer}/.well-known/jwks.json`; | ||
const result = await fetch(url); | ||
const result = await (0, node_fetch_1.default)(url); | ||
const publicKeys = await result.json(); | ||
@@ -43,0 +44,0 @@ this.cacheKeys = publicKeys.keys.reduce((agg, current) => { |
{ | ||
"name": "@upandgo/verify-cognito-token", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "custom token verification for uag", | ||
@@ -18,3 +18,4 @@ "repository": "git@gitlab.com:agence-upandgo/librairies/verify-cognito-token.git", | ||
"jsonwebtoken": "^8.5.1", | ||
"jwk-to-pem": "^2.0.5" | ||
"jwk-to-pem": "^2.0.5", | ||
"node-fetch": "^3.2.10" | ||
}, | ||
@@ -21,0 +22,0 @@ "devDependencies": { |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
32495
123
0
3
+ Addednode-fetch@^3.2.10
+ Addeddata-uri-to-buffer@4.0.1(transitive)
+ Addedfetch-blob@3.2.0(transitive)
+ Addedformdata-polyfill@4.0.10(transitive)
+ Addednode-domexception@1.0.0(transitive)
+ Addednode-fetch@3.3.2(transitive)
+ Addedweb-streams-polyfill@3.3.3(transitive)