Shorten session length, change device ID calc
This commit is contained in:
parent
84731c9e9a
commit
130554d86b
3 changed files with 13 additions and 5 deletions
|
|
@ -109,6 +109,9 @@ export const authOptions: NextAuthOptions = {
|
|||
signOut: "/logout",
|
||||
},
|
||||
providers,
|
||||
session: {
|
||||
maxAge: 7 * 24 * 60 * 60,
|
||||
},
|
||||
secret: process.env.NEXTAUTH_SECRET,
|
||||
callbacks: {
|
||||
signIn: async ({ user }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue