From 6dce3c8476688efd83fd41f2822cb39fb7b917d7 Mon Sep 17 00:00:00 2001 From: Kirill Tregubov Date: Thu, 9 Nov 2023 15:54:15 -0500 Subject: [PATCH] Update types/jwt.d.ts based on feedback --- types/jwt.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/jwt.d.ts b/types/jwt.d.ts index c16ae59..9e5670d 100644 --- a/types/jwt.d.ts +++ b/types/jwt.d.ts @@ -121,13 +121,13 @@ declare namespace fastifyJwt { export interface SignOptions extends Omit { expiresIn: number | string; notBefore: number | string; - key: string | Buffer + key?: string | Buffer } export interface VerifyOptions extends Omit { maxAge: number | string; onlyCookie: boolean; - key: string | Buffer + key?: string | Buffer } export interface FastifyJWTOptions {