Skip to content

No Session Timeout Handling #61

@RUKAYAT-CODER

Description

@RUKAYAT-CODER

Description

Overview
sessionExpiresAt is stored but never checked.

Background
The store saves sessionExpiresAt but no code checks if the session has expired, meaning stale tokens may be used and sessions don't expire properly.

Specifications

  • Check token expiry on app foreground
  • Auto-refresh if about to expire
  • Redirect to login if expired

Tasks:

  • Add expiry check on foreground
  • Add auto-refresh logic
  • Add expiry warning

Impacted Files:

  • src/store/index.ts
  • App.tsx

Labels: security, priority-high

🙌Contribution Guidelines:
Assignment required before PR submission
Timeframe: 48-72 hours
PR description must include: Close #20
Star the repo⭐
For more context, please refer to the mobile README

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions