Skip to content

Commit

Permalink
Merge pull request #1512 from rockingrohit9639/feature/auto-logout
Browse files Browse the repository at this point in the history
feat(auto-logout): update expiry of session to 3 days
  • Loading branch information
DonKoko authored Dec 12, 2024
2 parents c6f96db + 58b51b4 commit f4c3e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const server = await createHonoServer({
// If a user doesn't come back to the app within 30 days, their session will be deleted.
async commitSession(session) {
return sessionStorage.commitSession(session, {
maxAge: 60 * 60 * 24 * 30, // 30 days
maxAge: 60 * 60 * 24 * 3, // 3 days
});
},
};
Expand Down

0 comments on commit f4c3e74

Please sign in to comment.