⬆️ Upgrade typescript (#1639)

This commit is contained in:
Luke Vella 2025-03-25 15:49:54 +00:00 committed by GitHub
parent 4440ee4f0a
commit 402348b854
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 227 additions and 52 deletions

View file

@ -4,7 +4,7 @@ import type { JWT } from "next-auth/jwt";
const now = () => (Date.now() / 1000) | 0;
export async function getDerivedEncryptionKey(
keyMaterial: string | Buffer,
keyMaterial: string | Uint8Array,
salt: string,
) {
return await hkdf(
@ -19,7 +19,7 @@ export async function getDerivedEncryptionKey(
interface JWTEncodeParams {
token?: JWT;
salt?: string;
secret: string | Buffer;
secret: string | Uint8Array;
maxAge?: number;
}