Skip to content

WorkIQ session disconnects after ~60 minutes of inactivity (likely OAuth token refresh failure) #151

Description

@thejohnjansen

Describe the bug
WorkIQ disconnects/becomes unauthenticated approximately 60 minutes after the last interaction. Re-authenticating restores functionality. This appears to align with the default M365 OAuth access token lifetime, suggesting the silent token refresh is not working correctly in the Github Copilot App context.

To Reproduce

  1. Launch Github Copilot App and authenticate with WorkIQ // should happen automatically
  2. Use WorkIQ normally
  3. Leave session idle for ~60 minutes
  4. Attempt any WorkIQ command
  5. Session is disconnected / requires re-authentication

Expected behavior
WorkIQ should silently refresh the access token in the background (using the refresh token) and maintain the session without requiring manual re-authentication.

Actual behavior
Session drops after ~60 minutes. Commands fail and re-login is required.

Environment

  • OS: Windows 11
  • M365 tenant: commercial
  • WorkIQ version: (run workiq --version and fill in)
  • Use case: automated daily discovery runs against M365 data sources (meetings, email, Teams, Planner)

Additional context
This particularly impacts automated/scheduled workflows where an interactive re-auth prompt is not viable.

Workaround
Manually run workiq logout + re-authenticate before each use session.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions