Skip to content

fix(frontend): handle 401 by clearing session, skip sending expired JWTs - #5392

Merged
Yicong-Huang merged 2 commits into
apache:mainfrom
Yicong-Huang:feat/frontend-401-interceptor
Jun 6, 2026
Merged

Yicong-Huang merged 2 commits into
apache:mainfrom
Yicong-Huang:feat/frontend-401-interceptor

Conversation

@Yicong-Huang

@Yicong-Huang Yicong-Huang commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Adds UnauthorizedHttpInterceptor that watches every HTTP response: when the server returns 401 to a request that carried an Authorization header, it routes the logout through UserService.logout() (which clears the JWT and broadcasts userChanged(undefined) so header / dashboard / in-memory state stay in sync), surfaces a "session expired" notification, and routes to /about with returnUrl. 401 responses to anonymous or auth-endpoint requests pass through unchanged so a 401 on a public endpoint never wipes a freshly-stored token, and a wrong-password 401 on /auth/login cannot kick an already-authenticated user out.

Two adversarial-review findings (caught during self-review, fixed in commit 2):

  1. Auth-endpoint allowlist. JwtModule blanket-attaches Authorization to every request, including POST /api/auth/login. A wrong-password 401 there carries the user's existing token and would be misread as "session invalid", kicking an already-authenticated user out the moment they fat-finger a re-login. Allowlist regex \/auth\/(login|register|refresh|google\/login) short-circuits the interceptor for these URLs.

  2. Concurrent 401 dedup. A burst of 8-10 parallel dashboard requests, all 401'd by a server-side revoke, would fire 8 toasts and 8 router.navigate calls. Routing the logout through UserService.logout() (which flips isLogin() from true to false) gives natural dedup: only the first 401 sees isLogin() === true and fires side effects; the rest of the burst short-circuits. The flag re-arms automatically after a successful re-login.

Flips JwtModule.forRoot's skipWhenExpired from false to true, so a stale localStorage token is no longer auto-appended to public pre-login endpoints (/api/config/gui, /api/config/user-system). That auto-append is the exact mechanism that caused the revert of #4903 in #5025 — without it, an expired token reaches public endpoints, gets rejected, and breaks the login page before the user can re-authenticate.

UserService is resolved lazily via Injector inside catchError because it transitively depends on HttpClient, and direct injection would form a DI cycle through the interceptor chain.

Any related issues, documentation, discussions?

Closes #5391. Prerequisite for a re-attempt of #4901 (whose first try, #4903, was reverted by #5025 because of #5026). Discussion: https://lists.apache.org/thread/w5jmczrffxd5doc5hnss2zm7dbhnbhyy

How was this PR tested?

Added unauthorized-http-interceptor.service.spec.ts with 12 cases covering: 401 with Authorization → logout + notify + navigate; 401 without Authorization → no-op; non-401 with Authorization → no-op; root path → omits returnUrl; auth-endpoint URLs (login / register / refresh / google/login, with and without query strings) → no-op; over-broad URL match guard (recent-logins still logs out); concurrent 401 burst → exactly one side-effect set; re-arms after re-login.
Tested manually as well.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)

…JWTs

Adds an UnauthorizedHttpInterceptor that, on a 401 response to a request
that carried Authorization, clears the stored JWT, shows a notification,
and routes to /about with returnUrl so the user can be sent back after
re-login. 401s on anonymous requests pass through unchanged.

Flips JwtModule.forRoot's skipWhenExpired from false to true so a stale
localStorage token is no longer attached to public pre-login endpoints
(/api/config/gui, /api/config/user-system) — the exact scenario that
caused the revert of apache#4903 in apache#5025.

Closes apache#5391.
@github-actions github-actions Bot added feature frontend Changes related to the frontend GUI labels Jun 5, 2026
@codecov-commenter

codecov-commenter commented Jun 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.60%. Comparing base (8a4cb29) to head (809baeb).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5392      +/-   ##
============================================
- Coverage     51.62%   51.60%   -0.02%     
  Complexity     2420     2420              
============================================
  Files          1056     1057       +1     
  Lines         41046    41140      +94     
  Branches       4407     4439      +32     
============================================
+ Hits          21190    21231      +41     
- Misses        18617    18669      +52     
- Partials       1239     1240       +1     
Flag Coverage Δ *Carryforward flag
access-control-service 41.89% <ø> (ø) Carriedforward from 9c25d23
agent-service 33.76% <ø> (ø) Carriedforward from 9c25d23
amber 52.23% <ø> (ø) Carriedforward from 9c25d23
computing-unit-managing-service 1.38% <ø> (ø) Carriedforward from 9c25d23
config-service 54.68% <ø> (ø) Carriedforward from 9c25d23
file-service 38.42% <ø> (ø) Carriedforward from 9c25d23
frontend 46.31% <100.00%> (-0.02%) ⬇️
pyamber 90.69% <ø> (ø) Carriedforward from 9c25d23
python 90.84% <ø> (ø) Carriedforward from 9c25d23
workflow-compiling-service 58.39% <ø> (ø) Carriedforward from 9c25d23

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Yicong-Huang Yicong-Huang added the release/v1.2 back porting to release/v1.2 label Jun 5, 2026
@Yicong-Huang
Yicong-Huang requested a review from xuang7 June 5, 2026 23:42

@aglinxinyuan aglinxinyuan left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we manually test this PR? It's a very important change.
Auth-related changes have already caused two reverts: #5173 and #5025.

We can just tell the AI to run an end-to-end test, and it should be able to do so, even though it might take a while to complete.

Two adversarial-review findings on the previous commit:

1. JwtModule blanket-attaches Authorization to every request, including
   POST /api/auth/login. A wrong-password 401 there carried the user's
   existing token and would be misread as "session invalid", kicking an
   already-authenticated user out the moment they fat-fingered a re-login.
   Add an allowlist regex /\/auth\/(login|register|refresh|google\/login)/
   that short-circuits the interceptor for these URLs.

2. A burst of 8-10 parallel dashboard requests, all 401'd by a server-side
   revoke, would fire 8 toasts and 8 router.navigate calls. Route the
   logout through UserService.logout() so isLogin() flips to false on the
   first 401; subsequent 401s in the burst see isLogin() === false and
   skip their side effects. The same flag re-arms automatically after a
   successful re-login.

UserService is resolved lazily via Injector because it transitively depends
on HttpClient and direct injection would form a DI cycle through the
interceptor chain.
@Yicong-Huang

Copy link
Copy Markdown
Contributor Author

I am testing it. also trying add more fix and tests. Please help test as well

@Yicong-Huang

Copy link
Copy Markdown
Contributor Author

Did we manually test this PR? It's a very important change. Auth-related changes have already caused two reverts: #5173 and #5025.

We can just tell the AI to run an end-to-end test, and it should be able to do so, even though it might take a while to complete.

what is the change you requested?

@Yicong-Huang
Yicong-Huang requested a review from aglinxinyuan June 6, 2026 00:18
@aglinxinyuan

aglinxinyuan commented Jun 6, 2026 •

Copy link
Copy Markdown
Contributor

Did we manually test this PR? It's a very important change. Auth-related changes have already caused two reverts: #5173 and #5025.
We can just tell the AI to run an end-to-end test, and it should be able to do so, even though it might take a while to complete.

what is the change you requested?

I was asking for the manual testing part in the PR description. I'm not sure whether changes to the PR description are considered changes or if only code changes are counted.

@xuang7 xuang7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally with no issues so far. Please hold off on merging for now. The backport workflow is not working at the moment. I will merge it once the backport is ready, thank you.

@Yicong-Huang

Copy link
Copy Markdown
Contributor Author

Thanks, @xuang7 . The backport should be fixed. Please check.

@Yicong-Huang Yicong-Huang changed the title feat(frontend): handle 401 by clearing session, skip sending expired JWTs fix(frontend): handle 401 by clearing session, skip sending expired JWTs Jun 6, 2026
@Yicong-Huang Yicong-Huang added fix and removed feature labels Jun 6, 2026
@Yicong-Huang
Yicong-Huang enabled auto-merge June 6, 2026 07:06
@Yicong-Huang
Yicong-Huang added this pull request to the merge queue Jun 6, 2026
Merged via the queue into apache:main with commit 749798d Jun 6, 2026
54 of 56 checks passed
@Yicong-Huang
Yicong-Huang deleted the feat/frontend-401-interceptor branch June 6, 2026 07:27
Yicong-Huang added a commit that referenced this pull request Jun 6, 2026
…WTs (#5392)

### What changes were proposed in this PR?

Adds `UnauthorizedHttpInterceptor` that watches every HTTP response:
when the server returns 401 to a request that carried an `Authorization`
header, it routes the logout through `UserService.logout()` (which
clears the JWT and broadcasts `userChanged(undefined)` so header /
dashboard / in-memory state stay in sync), surfaces a "session expired"
notification, and routes to `/about` with `returnUrl`. 401 responses to
anonymous or auth-endpoint requests pass through unchanged so a 401 on a
public endpoint never wipes a freshly-stored token, and a wrong-password
401 on `/auth/login` cannot kick an already-authenticated user out.

Two adversarial-review findings (caught during self-review, fixed in
commit 2):

1. **Auth-endpoint allowlist.** `JwtModule` blanket-attaches
`Authorization` to every request, including `POST /api/auth/login`. A
wrong-password 401 there carries the user's existing token and would be
misread as "session invalid", kicking an already-authenticated user out
the moment they fat-finger a re-login. Allowlist regex
`\/auth\/(login|register|refresh|google\/login)` short-circuits the
interceptor for these URLs.

2. **Concurrent 401 dedup.** A burst of 8-10 parallel dashboard
requests, all 401'd by a server-side revoke, would fire 8 toasts and 8
`router.navigate` calls. Routing the logout through
`UserService.logout()` (which flips `isLogin()` from true to false)
gives natural dedup: only the first 401 sees `isLogin() === true` and
fires side effects; the rest of the burst short-circuits. The flag
re-arms automatically after a successful re-login.

Flips `JwtModule.forRoot`'s `skipWhenExpired` from `false` to `true`, so
a stale `localStorage` token is no longer auto-appended to public
pre-login endpoints (`/api/config/gui`, `/api/config/user-system`). That
auto-append is the exact mechanism that caused the revert of #4903 in
#5025 — without it, an expired token reaches public endpoints, gets
rejected, and breaks the login page before the user can re-authenticate.

`UserService` is resolved lazily via `Injector` inside `catchError`
because it transitively depends on `HttpClient`, and direct injection
would form a DI cycle through the interceptor chain.

### Any related issues, documentation, discussions?

Closes #5391. Prerequisite for a re-attempt of #4901 (whose first try,
#4903, was reverted by #5025 because of #5026). Discussion:
https://lists.apache.org/thread/w5jmczrffxd5doc5hnss2zm7dbhnbhyy

### How was this PR tested?

Added `unauthorized-http-interceptor.service.spec.ts` with 12 cases
covering: 401 with Authorization → logout + notify + navigate; 401
without Authorization → no-op; non-401 with Authorization → no-op; root
path → omits `returnUrl`; auth-endpoint URLs (login / register / refresh
/ google/login, with and without query strings) → no-op; over-broad URL
match guard (`recent-logins` still logs out); concurrent 401 burst →
exactly one side-effect set; re-arms after re-login.
Tested manually as well.

### Was this PR authored or co-authored using generative AI tooling?

(backported from commit 749798d)

Generated-by: Claude Code (Opus 4.7)
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Backport to release/v1.2 succeeded as 184da39. Run

github-merge-queue Bot pushed a commit that referenced this pull request Jun 6, 2026
### What changes were proposed in this PR?

Replaces the lazy pass-through behavior in `common/auth/JwtAuthFilter`
with an RFC 6750 eager 401 + `WWW-Authenticate` challenge. Missing
`Authorization` throws the bare `Bearer` challenge; an invalid token
throws `error="invalid_token"` so a well-behaved client can distinguish
"please log in" from "your stored token is invalid, discard it". Valid
tokens populate a `SecurityContext` exactly as before.

Endpoints that need to serve anonymous traffic opt out with `@PermitAll`
(JSR-250). This PR audits every resource method in the 5 microservices
and applies `@PermitAll` where the lazy filter previously made it
implicit:

- 5x `HealthCheckResource` (liveness probes)
- `AccessControlResource` `/auth/*` (routing proxy that authenticates
itself via `parseToken` in the resource body)
- `LiteLLMProxyResource` `/chat/*`, `LiteLLMModelsResource` `/models`
(preserve current "gated only by `guiWorkflowWorkspaceCopilotEnabled`"
behavior; whether these should require an authenticated user is a
separate hardening decision)
- `DatasetResource`: 5 endpoints with `/public-*` or `/publicVersion`
paths, plus `/{did}/cover` and `/{did}/cover-url` which already take
`@Auth Optional[SessionUser]` for opt-in user context

`UnauthorizedException` + `UnauthorizedExceptionMapper` carry the
`WWW-Authenticate` challenge to the JAX-RS edge. The exception extends
`RuntimeException` (not `WebApplicationException`) so unit tests can run
without a Jersey `RuntimeDelegate` on the classpath, and is constructed
with `writableStackTrace=false` to avoid `fillInStackTrace` cost on the
auth hot path.

### Any related issues, documentation, discussions?

Closes #4901. The earlier attempt at this fix, #4903, was reverted in
#5025 because expired tokens from `localStorage` were piggy-backed onto
`/api/config/gui` and broke the login page (#5026). PR #5392 has since
fixed the frontend to drop expired tokens client-side (`skipWhenExpired:
true`) and clear the session reactively on 401, so this PR can now ship
safely.

### How was this PR tested?

Added `JwtAuthFilterSpec` (header-missing / non-Bearer / invalid-token /
valid-token; method- and class-level `@PermitAll`; resource-info-absent
fallback) and `UnauthorizedExceptionMapperSpec`. Updated existing
service specs to expect 401 (from the filter) instead of 403 (from the
role filter) for missing-Authorization scenarios, and `*ServiceRunSpec`
mocks verify the new `UnauthorizedExceptionMapper` registration. `sbt
Auth/test` + 4 service specs all green; `sbt scalafmtCheckAll` clean.
Manually tested end-to-end against a running `config-service` build with
`curl` (missing / bad / valid tokens, `@PermitAll` healthcheck and
pre-login) and in the browser with a forged JWT in localStorage to
confirm the eager 401 path interoperates cleanly with PR #5392's 401
interceptor.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)
Yicong-Huang added a commit that referenced this pull request Jun 6, 2026
### What changes were proposed in this PR?

Replaces the lazy pass-through behavior in `common/auth/JwtAuthFilter`
with an RFC 6750 eager 401 + `WWW-Authenticate` challenge. Missing
`Authorization` throws the bare `Bearer` challenge; an invalid token
throws `error="invalid_token"` so a well-behaved client can distinguish
"please log in" from "your stored token is invalid, discard it". Valid
tokens populate a `SecurityContext` exactly as before.

Endpoints that need to serve anonymous traffic opt out with `@PermitAll`
(JSR-250). This PR audits every resource method in the 5 microservices
and applies `@PermitAll` where the lazy filter previously made it
implicit:

- 5x `HealthCheckResource` (liveness probes)
- `AccessControlResource` `/auth/*` (routing proxy that authenticates
itself via `parseToken` in the resource body)
- `LiteLLMProxyResource` `/chat/*`, `LiteLLMModelsResource` `/models`
(preserve current "gated only by `guiWorkflowWorkspaceCopilotEnabled`"
behavior; whether these should require an authenticated user is a
separate hardening decision)
- `DatasetResource`: 5 endpoints with `/public-*` or `/publicVersion`
paths, plus `/{did}/cover` and `/{did}/cover-url` which already take
`@Auth Optional[SessionUser]` for opt-in user context

`UnauthorizedException` + `UnauthorizedExceptionMapper` carry the
`WWW-Authenticate` challenge to the JAX-RS edge. The exception extends
`RuntimeException` (not `WebApplicationException`) so unit tests can run
without a Jersey `RuntimeDelegate` on the classpath, and is constructed
with `writableStackTrace=false` to avoid `fillInStackTrace` cost on the
auth hot path.

### Any related issues, documentation, discussions?

Closes #4901. The earlier attempt at this fix, #4903, was reverted in
#5025 because expired tokens from `localStorage` were piggy-backed onto
`/api/config/gui` and broke the login page (#5026). PR #5392 has since
fixed the frontend to drop expired tokens client-side (`skipWhenExpired:
true`) and clear the session reactively on 401, so this PR can now ship
safely.

### How was this PR tested?

Added `JwtAuthFilterSpec` (header-missing / non-Bearer / invalid-token /
valid-token; method- and class-level `@PermitAll`; resource-info-absent
fallback) and `UnauthorizedExceptionMapperSpec`. Updated existing
service specs to expect 401 (from the filter) instead of 403 (from the
role filter) for missing-Authorization scenarios, and `*ServiceRunSpec`
mocks verify the new `UnauthorizedExceptionMapper` registration. `sbt
Auth/test` + 4 service specs all green; `sbt scalafmtCheckAll` clean.
Manually tested end-to-end against a running `config-service` build with
`curl` (missing / bad / valid tokens, `@PermitAll` healthcheck and
pre-login) and in the browser with a forged JWT in localStorage to
confirm the eager 401 path interoperates cleanly with PR #5392's 401
interceptor.

### Was this PR authored or co-authored using generative AI tooling?

(backported from commit 5c2eaa2)

Generated-by: Claude Code (Opus 4.7)
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…WTs (apache#5392)

### What changes were proposed in this PR?

Adds `UnauthorizedHttpInterceptor` that watches every HTTP response:
when the server returns 401 to a request that carried an `Authorization`
header, it routes the logout through `UserService.logout()` (which
clears the JWT and broadcasts `userChanged(undefined)` so header /
dashboard / in-memory state stay in sync), surfaces a "session expired"
notification, and routes to `/about` with `returnUrl`. 401 responses to
anonymous or auth-endpoint requests pass through unchanged so a 401 on a
public endpoint never wipes a freshly-stored token, and a wrong-password
401 on `/auth/login` cannot kick an already-authenticated user out.

Two adversarial-review findings (caught during self-review, fixed in
commit 2):

1. **Auth-endpoint allowlist.** `JwtModule` blanket-attaches
`Authorization` to every request, including `POST /api/auth/login`. A
wrong-password 401 there carries the user's existing token and would be
misread as "session invalid", kicking an already-authenticated user out
the moment they fat-finger a re-login. Allowlist regex
`\/auth\/(login|register|refresh|google\/login)` short-circuits the
interceptor for these URLs.

2. **Concurrent 401 dedup.** A burst of 8-10 parallel dashboard
requests, all 401'd by a server-side revoke, would fire 8 toasts and 8
`router.navigate` calls. Routing the logout through
`UserService.logout()` (which flips `isLogin()` from true to false)
gives natural dedup: only the first 401 sees `isLogin() === true` and
fires side effects; the rest of the burst short-circuits. The flag
re-arms automatically after a successful re-login.

Flips `JwtModule.forRoot`'s `skipWhenExpired` from `false` to `true`, so
a stale `localStorage` token is no longer auto-appended to public
pre-login endpoints (`/api/config/gui`, `/api/config/user-system`). That
auto-append is the exact mechanism that caused the revert of apache#4903 in
apache#5025 — without it, an expired token reaches public endpoints, gets
rejected, and breaks the login page before the user can re-authenticate.

`UserService` is resolved lazily via `Injector` inside `catchError`
because it transitively depends on `HttpClient`, and direct injection
would form a DI cycle through the interceptor chain.

### Any related issues, documentation, discussions?

Closes apache#5391. Prerequisite for a re-attempt of apache#4901 (whose first try,
apache#4903, was reverted by apache#5025 because of apache#5026). Discussion:
https://lists.apache.org/thread/w5jmczrffxd5doc5hnss2zm7dbhnbhyy

### How was this PR tested?

Added `unauthorized-http-interceptor.service.spec.ts` with 12 cases
covering: 401 with Authorization → logout + notify + navigate; 401
without Authorization → no-op; non-401 with Authorization → no-op; root
path → omits `returnUrl`; auth-endpoint URLs (login / register / refresh
/ google/login, with and without query strings) → no-op; over-broad URL
match guard (`recent-logins` still logs out); concurrent 401 burst →
exactly one side-effect set; re-arms after re-login.
Tested manually as well.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…he#5404)

### What changes were proposed in this PR?

Replaces the lazy pass-through behavior in `common/auth/JwtAuthFilter`
with an RFC 6750 eager 401 + `WWW-Authenticate` challenge. Missing
`Authorization` throws the bare `Bearer` challenge; an invalid token
throws `error="invalid_token"` so a well-behaved client can distinguish
"please log in" from "your stored token is invalid, discard it". Valid
tokens populate a `SecurityContext` exactly as before.

Endpoints that need to serve anonymous traffic opt out with `@PermitAll`
(JSR-250). This PR audits every resource method in the 5 microservices
and applies `@PermitAll` where the lazy filter previously made it
implicit:

- 5x `HealthCheckResource` (liveness probes)
- `AccessControlResource` `/auth/*` (routing proxy that authenticates
itself via `parseToken` in the resource body)
- `LiteLLMProxyResource` `/chat/*`, `LiteLLMModelsResource` `/models`
(preserve current "gated only by `guiWorkflowWorkspaceCopilotEnabled`"
behavior; whether these should require an authenticated user is a
separate hardening decision)
- `DatasetResource`: 5 endpoints with `/public-*` or `/publicVersion`
paths, plus `/{did}/cover` and `/{did}/cover-url` which already take
`@Auth Optional[SessionUser]` for opt-in user context

`UnauthorizedException` + `UnauthorizedExceptionMapper` carry the
`WWW-Authenticate` challenge to the JAX-RS edge. The exception extends
`RuntimeException` (not `WebApplicationException`) so unit tests can run
without a Jersey `RuntimeDelegate` on the classpath, and is constructed
with `writableStackTrace=false` to avoid `fillInStackTrace` cost on the
auth hot path.

### Any related issues, documentation, discussions?

Closes apache#4901. The earlier attempt at this fix, apache#4903, was reverted in
apache#5025 because expired tokens from `localStorage` were piggy-backed onto
`/api/config/gui` and broke the login page (apache#5026). PR apache#5392 has since
fixed the frontend to drop expired tokens client-side (`skipWhenExpired:
true`) and clear the session reactively on 401, so this PR can now ship
safely.

### How was this PR tested?

Added `JwtAuthFilterSpec` (header-missing / non-Bearer / invalid-token /
valid-token; method- and class-level `@PermitAll`; resource-info-absent
fallback) and `UnauthorizedExceptionMapperSpec`. Updated existing
service specs to expect 401 (from the filter) instead of 403 (from the
role filter) for missing-Authorization scenarios, and `*ServiceRunSpec`
mocks verify the new `UnauthorizedExceptionMapper` registration. `sbt
Auth/test` + 4 service specs all green; `sbt scalafmtCheckAll` clean.
Manually tested end-to-end against a running `config-service` build with
`curl` (missing / bad / valid tokens, `@PermitAll` healthcheck and
pre-login) and in the browser with a forged JWT in localStorage to
confirm the eager 401 path interoperates cleanly with PR apache#5392's 401
interceptor.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix frontend Changes related to the frontend GUI release/v1.2 back porting to release/v1.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: handle 401 responses by clearing session, and skip sending expired JWTs

4 participants