Skip to content

Implement Refresh Token Rotation #24

@ayshadogo

Description

@ayshadogo

Description:
Create refresh token endpoint with automatic rotation for enhanced security.

Tasks:

  • Create POST /auth/refresh endpoint
  • Validate refresh token from database
  • Implement token rotation (invalidate old, issue new)
  • Check for token reuse (security breach detection)
  • Update refresh token hash in database
  • Return new access and refresh tokens

Acceptance Criteria:

  • Old refresh tokens are invalidated after use
  • New tokens are issued successfully
  • Token reuse is detected and handled
  • Returns 401 on invalid refresh token

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions