Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@upandgo/verify-cognito-token

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@upandgo/verify-cognito-token - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

dist/index.js

@@ -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

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