We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e36aa commit af4a174Copy full SHA for af4a174
src/auth.ts
@@ -34,7 +34,7 @@ export function getJwtSecretKey() {
34
throw new Error("JWT_SECRET_KEY is not set");
35
}
36
37
- return new TextEncoder().encode(secret);
+ return new Uint8Array(Buffer.from(secret, "base64"));
38
39
40
export async function verifyJwtToken(token: string) {
0 commit comments