Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"validate": "yarn lint:check && yarn format --check && yarn build && yarn test && yarn lint:package"
},
"dependencies": {
"uuid": "^11.1.0",
"uuid": "^14.0.0",
"jose": "^4.13.2",
"auth0-legacy": "npm:auth0@^4.27.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/auth/client-authentication.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as jose from "jose";
import { v4 as uuid } from "uuid";

export interface AddClientAuthenticationPayload {
client_id?: string;
Expand Down Expand Up @@ -41,6 +40,7 @@ export const addClientAuthentication = async ({
if (clientAssertionSigningKey && !payload.client_assertion) {
const alg = clientAssertionSigningAlg || "RS256";
const privateKey = await jose.importPKCS8(clientAssertionSigningKey, alg);
const { v4: uuid } = await import("uuid");

payload.client_assertion = await new jose.SignJWT({})
.setProtectedHeader({ alg })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jest.mock("jose", () => ({
},
}));

jest.mock("uuid", () => ({
v4: jest.fn(() => "test-uuid"),
}));

// Mock the core fetcher to avoid actual HTTP calls
jest.mock("../../core/index.js", () => {
const actual = jest.requireActual("../../core/index.js");
Expand Down
Loading