Skip to content

Commit e30e33a

Browse files
VIA-172 AJ/AS Making session polling time to be just lower than warning dialog time, to avoid showing the dialog for a stale session
1 parent 43f4235 commit e30e33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function RootLayout({
2222
// The session expiry is handled by the server.
2323
// The value is set to 10 seconds less than the warning time.
2424
// This is to ensure that the warning dialog is only shown when user is authenticated.
25-
const SESSION_REFETCH_SECONDS = Math.floor(WARNING_TIME_MS / 1000) - 10;
25+
const SESSION_REFETCH_SECONDS = Math.floor(0.9 * WARNING_TIME_MS / 1000);
2626

2727
return (
2828
<html lang="en">

0 commit comments

Comments
 (0)