Skip to content

Commit be18000

Browse files
ab-pmbenjie
authored andcommitted
fix(types): use jwt.Secret type in PostGraphileCoreOptions (#546)
1 parent 0170064 commit be18000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/postgraphile-core/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
formatSQLForDebugging,
2121
} from "graphile-build-pg";
2222
import { Pool, PoolClient } from "pg";
23-
import { SignOptions } from "jsonwebtoken";
23+
import { SignOptions, Secret } from "jsonwebtoken";
2424

2525
export {
2626
Plugin,
@@ -73,7 +73,7 @@ export interface PostGraphileCoreOptions {
7373
prependPlugins?: Array<Plugin>;
7474
skipPlugins?: Array<Plugin>;
7575
jwtPgTypeIdentifier?: string;
76-
jwtSecret?: string;
76+
jwtSecret?: Secret;
7777
jwtSignOptions?: SignOptions;
7878
/**
7979
* @deprecated UNSUPPORTED! Use an inflector plugin instead.

0 commit comments

Comments
 (0)