Skip to content

Change SesssionObserver into function component and use TypeScript#5250

Merged
greenbonebot merged 2 commits intomainfrom
typescript-sessionobserver
Apr 24, 2026
Merged

Change SesssionObserver into function component and use TypeScript#5250
greenbonebot merged 2 commits intomainfrom
typescript-sessionobserver

Conversation

@bjoernricks
Copy link
Copy Markdown
Contributor

What

Change SesssionObserver into function component and use TypeScript

Why

Refactor the SessionObserver class component into a function component and also use TypeScript for the module.

Allows to use session hook instead of having to use the redux store. We want to get rid of the redux store at the end.

@bjoernricks bjoernricks requested a review from a team as a code owner April 23, 2026 12:53
@greenbonebot greenbonebot enabled auto-merge (rebase) April 23, 2026 12:53
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA e235d3b.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@bjoernricks bjoernricks force-pushed the typescript-sessionobserver branch from 319311f to 83a2722 Compare April 23, 2026 13:22
Comment thread src/web/components/observer/SessionObserver.tsx Outdated
Comment thread src/web/components/observer/SessionObserver.tsx Outdated
Refactor the SessionObserver class component into a function component
and also use TypeScript for the module.
@bjoernricks bjoernricks force-pushed the typescript-sessionobserver branch from 83a2722 to 6f1db4c Compare April 24, 2026 06:49
@bjoernricks bjoernricks requested a review from daniele-mng April 24, 2026 06:50
Create a ping request to get a 401 that redirects to the login page on
a 401 response automatically five seconds after the session timeout.
This will redirect the user more early if his session has expired.
@greenbonebot greenbonebot merged commit ac8517d into main Apr 24, 2026
25 checks passed
@greenbonebot greenbonebot deleted the typescript-sessionobserver branch April 24, 2026 07:04
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.

3 participants