Skip to content

Commit

Permalink
types: add key option to sign and verify
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillTregubov committed Nov 4, 2023
1 parent 87d5046 commit bf769d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/jwt.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,13 @@ declare namespace fastifyJwt {
export interface SignOptions extends Omit<SignerOptions, "expiresIn" | "notBefore"> {
expiresIn: number | string;
notBefore: number | string;
key: string | Buffer
}

export interface VerifyOptions extends Omit<VerifierOptions, "maxAge"> {
maxAge: number | string;
onlyCookie: boolean;
key: string | Buffer
}

export interface FastifyJWTOptions {
Expand Down

0 comments on commit bf769d8

Please sign in to comment.