New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mongodb-js/oidc-mock-provider

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/oidc-mock-provider - npm Package Compare versions

Comparing version 0.9.3 to 0.10.0

1

dist/index.d.ts

@@ -12,2 +12,3 @@ /// <reference types="node" />

payload: Record<string, unknown>;
customIdTokenPayload?: Record<string, unknown>;
skipIdToken?: boolean;

@@ -14,0 +15,0 @@ }>;

8

dist/index.js

@@ -178,3 +178,3 @@ "use strict";

async issueToken(metadata) {
const { expires_in, payload, skipIdToken } = await this.config.getTokenPayload(metadata);
const { expires_in, payload, skipIdToken, customIdTokenPayload } = await this.config.getTokenPayload(metadata);
const currentTimeInSeconds = Math.floor(Date.now() / 1000);

@@ -211,3 +211,7 @@ const header = {

? undefined
: makeToken({ ...fullPayload, aud: metadata.client_id }),
: makeToken({
...fullPayload,
aud: metadata.client_id,
...customIdTokenPayload,
}),
};

@@ -214,0 +218,0 @@ }

@@ -16,3 +16,3 @@ {

"homepage": "https://github.com/mongodb-js/devtools-shared",
"version": "0.9.3",
"version": "0.10.0",
"repository": {

@@ -76,3 +76,3 @@ "type": "git",

},
"gitHead": "f5cb3add0887b5beadb023542dbea84e7e9dc824"
"gitHead": "1cde5202b615487040302ee895384ba65ae02948"
}

Sorry, the diff of this file is not supported yet

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