Summary
The GitHub authentication flow can continue successfully even when GitHub token persistence fails.
This results in accounts that appear connected while lacking the token required for GitHub integrations.
Affected Files
Root Cause
Authentication success is not tightly coupled to token persistence success.
When token storage fails, the login flow may continue and create a valid session despite the integration being incomplete.
Reproduction
- Simulate a token persistence failure.
- Complete GitHub authentication.
- Observe successful login.
- Attempt GitHub integration features.
- Observe missing token-related failures.
Expected Behavior
Authentication should either complete fully or fail safely.
Actual Behavior
Users can become authenticated while integration state remains incomplete.
Why This Is Difficult To Detect
Authentication succeeds normally.
The issue only becomes visible later when integration features require the missing token.
Production Impact
- Broken GitHub integrations
- Inconsistent account state
- Support burden
- User confusion
Suggested Fix
Ensure token persistence and authentication success are handled atomically.
Severity
High
Summary
The GitHub authentication flow can continue successfully even when GitHub token persistence fails.
This results in accounts that appear connected while lacking the token required for GitHub integrations.
Affected Files
Root Cause
Authentication success is not tightly coupled to token persistence success.
When token storage fails, the login flow may continue and create a valid session despite the integration being incomplete.
Reproduction
Expected Behavior
Authentication should either complete fully or fail safely.
Actual Behavior
Users can become authenticated while integration state remains incomplete.
Why This Is Difficult To Detect
Authentication succeeds normally.
The issue only becomes visible later when integration features require the missing token.
Production Impact
Suggested Fix
Ensure token persistence and authentication success are handled atomically.
Severity
High