Skip to content

Commit

Permalink
Update session expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
Moltivie committed Nov 11, 2022
1 parent a87a1a7 commit d6160ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/api/auth/[...nextauth].ts
Expand Up @@ -33,6 +33,10 @@ export const authOptions: NextAuthOptions = {
clientSecret: env.GITHUB_CLIENT_SECRET,
}),
],
session: {
maxAge: 60 * 60 * 24 * 1, // 1 day
updateAge: 60 * 60 * 12, // 12 hours
},
};

export default NextAuth(authOptions);

1 comment on commit d6160ed

@vercel
Copy link

@vercel vercel bot commented on d6160ed Nov 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

my-t3-app – ./

my-t3-app-git-main-moltivie.vercel.app
my-t3-app-moltivie.vercel.app
the-t3-stack.vercel.app

Please sign in to comment.