Skip to content

Secure wallet auth refresh flows and stale-session recovery #549

Description

@grantfox-oss

Strengthen wallet login, nonce handling, and refresh-token rotation so replay attacks, stale sessions, and partial failures cannot leave inconsistent auth state.

  • Affected files: app/backend/src/auth/auth.module.ts, app/backend/src/auth/guards/, app/backend/src/auth/decorators/, app/backend/src/auth/index.ts, app/backend/src/common/middleware/correlation-id.middleware.ts, app/backend/src/audit/audit.service.ts, app/backend/src/config/env.schema.ts, app/backend/src/metrics/metrics.service.ts
  • Acceptance criteria:
    • Refresh tokens rotate on each use and revoke on logout or suspicious reuse.
    • Nonce and wallet-binding failures preserve consistent session state and are surfaced with explicit code paths.
    • Auth events emit structured audit metadata and are covered by integration tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignbugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions