Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux committed Mar 1, 2024
1 parent d0a2cd3 commit 25769f2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/core/src/util/token.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import { jest, it, describe, expect } from "@jest/globals";
import type * as Jose from "jose";
import { SignJWT, generateKeyPair, exportJWK } from "jose";
import { SignJWT, generateKeyPair } from "jose";
import { getWebidFromTokenPayload } from "./token";

jest.mock("jose", () => {
Expand Down Expand Up @@ -52,14 +52,6 @@ describe("getWebidFromTokenPayload", () => {
};
};

const mockJwks = async (): Promise<string> => {
const { publicKey: issuerPubKey } = await mockJwk();
const jwk = await exportJWK(issuerPubKey);
// This is not set by 'exportJWK'
jwk.alg = "ES256";
return JSON.stringify({ keys: [jwk] });
};

const mockJwt = async (
claims: Jose.JWTPayload,
issuer: string,
Expand Down

0 comments on commit 25769f2

Please sign in to comment.