Skip to content

auth: improve doctor output for expired or missing sessions #5

@shrey16

Description

@shrey16

Goal

Make bharatcode doctor more useful when auth state is missing, expired, unreadable, or inconsistent.

Expected behavior

bharatcode doctor should distinguish at least:

  • credentials file missing
  • credentials file permissions are too broad
  • access token expired but refresh token exists
  • refresh token missing or invalid-looking
  • BharatCode engine config missing or not writable

Acceptance

  • Output is human-readable and does not print token values.
  • Tests cover the new status cases with mocked credential/config files.
  • Existing successful doctor output remains concise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authAuthentication, sessions, and credential handlingarea: testsTests and automated verificationhelp wantedGood candidate for external contribution

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions