Skip to content

fix(token): reduce session and refresh token lifetimes [H5]#553

Merged
lakhansamani merged 1 commit intomainfrom
fix/h5-token-lifetimes
Apr 4, 2026
Merged

fix(token): reduce session and refresh token lifetimes [H5]#553
lakhansamani merged 1 commit intomainfrom
fix/h5-token-lifetimes

Conversation

@lakhansamani
Copy link
Copy Markdown
Contributor

Summary

  • H5 (High): Both session and refresh tokens expired in 1 year
  • Session tokens: reduced to 24 hours
  • Refresh tokens: reduced to 30 days

Test plan

  • Package compiles
  • Verify token expiration works correctly with new lifetimes
  • Verify refresh flow still works within 30-day window

Session tokens expired in 1 year and refresh tokens in 1 year,
meaning compromised tokens remained valid far too long.

- Session tokens: 1 year → 24 hours
- Refresh tokens: 1 year → 30 days

Fixes: H5 (High)
@lakhansamani lakhansamani merged commit 685e252 into main Apr 4, 2026
@lakhansamani lakhansamani deleted the fix/h5-token-lifetimes branch April 4, 2026 05:46
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.

1 participant