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
- Launch Github Copilot App and authenticate with WorkIQ // should happen automatically
- Use WorkIQ normally
- Leave session idle for ~60 minutes
- Attempt any WorkIQ command
- 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.
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
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
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.