Skip to content

Commit

Permalink
Feat: next-session expire 시간 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 11, 2023
1 parent 350220c commit c634e2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const authOptions: NextAuthOptions = {
],
session: {
strategy: 'jwt',
maxAge: 7 * 24 * 60 * 60, // 7 days
},
jwt: {
secret: process.env.NEXT_PUBLIC_SECRET_KEY,
Expand Down

0 comments on commit c634e2f

Please sign in to comment.