Skip to content

Commit af4a174

Browse files
committed
Use buffer in getJwtSecretKey
1 parent 88e36aa commit af4a174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function getJwtSecretKey() {
3434
throw new Error("JWT_SECRET_KEY is not set");
3535
}
3636

37-
return new TextEncoder().encode(secret);
37+
return new Uint8Array(Buffer.from(secret, "base64"));
3838
}
3939

4040
export async function verifyJwtToken(token: string) {

0 commit comments

Comments
 (0)