Open VaronLaStrauss opened 1 year ago
Fixed by #5. Code example:
const privateKey = await jose.importPKCS8(
await Bun.file("./keys/your-key.pem").text(),
"EdDSA"
);
export const setup = new Elysia().use(
jwt({
name: "jwt",
secret: privateKey,
exp: "1d",
})
);
TypeError: Key for the EdDSA algorithm must be of type CryptoKey. Received an instance of Uint8Array
Replicability:
Version:
"@elysiajs/jwt": "^0.6.3"