mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-04 11:41:51 +02:00
⬆️ Upgrade typescript (#1639)
This commit is contained in:
parent
4440ee4f0a
commit
402348b854
7 changed files with 227 additions and 52 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue