We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46fccfe commit 10f6422Copy full SHA for 10f6422
src/postgraphileOptions.js
@@ -1,10 +1,14 @@
1
exports.options = {
2
dynamicJson: true,
3
cors: true,
4
- jwtSecret: process.env.JWT_SECRET || String(Math.random()),
5
graphiql: false,
6
externalUrlBase: '/default',
7
+ // If consuming JWT:
8
+ jwtSecret: process.env.JWT_SECRET || String(Math.random()),
9
+ // If generating JWT:
10
+ jwtPgTypeIdentifier: 'forum_example.jwt_token',
11
+
12
/* If you want to enable GraphiQL, you must use `externalUrlBase` so PostGraphile
13
* knows where to tell the browser to find the assets. Doing this is
14
* strongly discouraged, you should use an external GraphQL client instead.
0 commit comments