-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Labels
FrontendThis is a frontendThis is a frontendODHACK14good first issueGood for newcomersGood for newcomersonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
⏳ useSessionExpiry
Create useSessionExpiry Hook to Detect and Handle Session Timeout
Description:
Implement a hook that tracks session expiration and triggers a warning modal or auto-refresh when the session is about to expire. Optionally refresh token on activity.
Why it's important:
Prevents unexpected session loss and improves UX/security by prompting the user in time or refreshing session automatically.
Acceptance Criteria:
- Detects session expiry based on a timestamp or JWT expiry.
- Triggers modal X seconds before expiry.
- Optionally refreshes session token on user interaction.
- Cleans up timers and event listeners on unmount.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrontendThis is a frontendThis is a frontendODHACK14good first issueGood for newcomersGood for newcomersonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week