Skip to content

Commit

Permalink
Setting 1h to for maxAge (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Bjøralt <[email protected]>
Co-authored-by: Sigrid Elnan <[email protected]>
  • Loading branch information
3 people authored Oct 19, 2023
1 parent 670a6d8 commit 9ce597d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const authOptions: AuthOptions = {
],
session: {
strategy: "jwt",
maxAge: 30 * 24 * 60 * 60, // 30 days
maxAge: 60 * 60, // 1h: Azure has ~1h 30 min, but setting 1h to ensure we force refresh before expire
},

callbacks: {
Expand Down

0 comments on commit 9ce597d

Please sign in to comment.