Skip to content

fix: redirect expired sessions to login on 401#212

Open
sergey3bv wants to merge 1 commit into
divinevideo:mainfrom
sergey3bv:fix/redirect-expired-sessions
Open

fix: redirect expired sessions to login on 401#212
sergey3bv wants to merge 1 commit into
divinevideo:mainfrom
sergey3bv:fix/redirect-expired-sessions

Conversation

@sergey3bv
Copy link
Copy Markdown
Contributor

Summary

  • Adds a global 401 handler in KeycastApi that redirects to login page when auth expires;
  • Prevents raw "missing authentication" API errors from showing in admin/support pages while preserving existing non-401 error handling.

Avoid naming corporate partners, customers, or other sensitive external brands in this PR title or body. Use generic descriptors unless a maintainer explicitly approves the public reference.

Motivation

  • Improving the project

Related Issue

Testing

  • cargo test --workspace --verbose
  • cargo clippy --workspace --all-targets --all-features -- -D warnings -A deprecated
  • cargo fmt --all -- --check
  • Manual verification completed

Visuals

  • UI/web change with screenshots/video attached
  • No visual change
  • Visuals and text avoid sensitive external brand or partner names unless explicitly approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(auth): redirect expired support-admin sessions to login

1 participant