This is an automated email from the ASF dual-hosted git repository.
aicam pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new 57c6a4a55b chore: fix token refresh interval to prevent frequent
logout (#3703)
57c6a4a55b is described below
commit 57c6a4a55bdbeb74cb0466b0fdc6194878be5d61
Author: Jaeyun Kim <[email protected]>
AuthorDate: Wed Aug 27 11:15:23 2025 -0700
chore: fix token refresh interval to prevent frequent logout (#3703)
---
core/gui/src/app/common/service/user/auth.service.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/gui/src/app/common/service/user/auth.service.ts
b/core/gui/src/app/common/service/user/auth.service.ts
index cf26c51eb1..57f90658de 100644
--- a/core/gui/src/app/common/service/user/auth.service.ts
+++ b/core/gui/src/app/common/service/user/auth.service.ts
@@ -170,8 +170,8 @@ export class AuthService {
private registerAutoRefreshToken() {
this.refreshTokenSubscription?.unsubscribe();
- const TOKEN_REFRESH_INTERVAL_IN_MIN =
this.config.env.expirationTimeInMinutes + 1;
- // Token Refresh Interval set to Token Expiration Time + 1
+ const TOKEN_REFRESH_INTERVAL_IN_MIN =
this.config.env.expirationTimeInMinutes - 1;
+ // Token Refresh Interval set to Token Expiration Time - 1
this.refreshTokenSubscription = interval(TOKEN_REFRESH_INTERVAL_IN_MIN *
60 * 1000)
.pipe(startWith(0)) // to trigger immediately for the first time.
.subscribe(() => {