Skip to content

Commit

Permalink
fix: mising cookie option in types (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
chyzwar authored Mar 23, 2020
1 parent ce298af commit d68c26e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ declare interface FastifyJWTOptions {
decode?: jwt.DecodeOptions;
sign?: jwt.SignOptions;
verify?: jwt.VerifyOptions;
cookie?: {
cookieName: string;
};
messages?: {
badRequestErrorMessage?: string;
noAuthorizationInHeaderMessage?: string;
Expand Down
3 changes: 3 additions & 0 deletions type.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ app.register(fastifyJwt, {
sign: {
expiresIn: '1h'
},
cookie: {
cookieName: 'jwt'
},
verify: {
maxAge: '1h'
},
Expand Down

0 comments on commit d68c26e

Please sign in to comment.