WIP work on getting nextauth + graphql working
This commit is contained in:
parent
45f8cb1234
commit
24d52eef3d
8 changed files with 668 additions and 21 deletions
|
|
@ -61,14 +61,11 @@ const nextAuthOptions = (config: IAppConfig, req: NextApiRequest) => {
|
|||
return {
|
||||
secret: nextAuth.secret,
|
||||
session: {
|
||||
jwt: true,
|
||||
strategy: "database",
|
||||
maxAge: 8 * 60 * 60, // 8 hours
|
||||
},
|
||||
jwt: {
|
||||
secret: nextAuth.secret,
|
||||
encryption: false,
|
||||
signingKey: nextAuth.signingKey,
|
||||
encryptionKey: nextAuth.encryptionKey,
|
||||
},
|
||||
providers,
|
||||
adapter,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue