Since next-auth doesn't use JWT anymore, remove the nextauth-jwt plugin

..and replace it with the Auth Bearer plugin.
This commit is contained in:
Abel Luck 2023-06-06 13:21:09 +00:00
parent 24d52eef3d
commit bdad5f551c
7 changed files with 52 additions and 112 deletions

View file

@ -50,11 +50,10 @@ const build = async (config: IAppConfig): Promise<Glue.Manifest> => {
route: {
path: "/graphql",
options: {
auth: false,
// auth: {
// strategies: ["nextauth-jwt"],
// mode: "optional",
// },
auth: {
strategies: ["session-id-bearer-token"],
mode: "optional",
},
},
},
pgConfig: config.postgraphile.authConnection,