style: run eslint and prettier
All checks were successful
TrafficCue Server CI / check (push) Successful in 23s
All checks were successful
TrafficCue Server CI / check (push) Successful in 23s
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { exportJWK, exportPKCS8, generateKeyPair } from "jose";
|
||||
|
||||
export async function createTestKey() {
|
||||
const { publicKey, privateKey } = await generateKeyPair("RS256", {
|
||||
extractable: true
|
||||
const { publicKey, privateKey } = await generateKeyPair("RS256", {
|
||||
extractable: true,
|
||||
});
|
||||
const jwk = await exportJWK(publicKey);
|
||||
jwk.kid = "test-key";
|
||||
@ -10,4 +10,4 @@ export async function createTestKey() {
|
||||
|
||||
const pem = await exportPKCS8(privateKey);
|
||||
return { jwk, pem };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user