Skip to content

[Security] Implement JWT Token Expiration #15

Open

Description

@getdownandcode

Problem

Generated tokens have no expiration enforcement.

Impact

  • Tokens valid indefinitely
  • Compromised tokens never invalidated
  • No automatic session expiration

Solution

Add JWT expiration:

  • exp claim in token (1 hour default)
  • Validation in auth middleware
  • Refresh token support

Acceptance Criteria

  • Tokens include exp claim
  • Expired tokens rejected
  • Refresh endpoint created
  • Tests verify expiration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions