You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Document context-aware authentication validation system
- Add sections on context detection and validation scope differences
- Update script documentation with context parameters
- Add debugging guide for context-related validation issues
- Include context-specific failure patterns and solutions
Context-aware validation automatically detects build vs E2E environments
and runs appropriate validations for each context.
Copy file name to clipboardExpand all lines: docs/testing/AUTHENTICATION_TROUBLESHOOTING.md
+179Lines changed: 179 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -294,6 +294,185 @@ if (navigationTime > profile.maxDelay) {
294
294
}
295
295
```
296
296
297
+
## Context-Aware Authentication Validation
298
+
299
+
GitPulse implements intelligent context-aware authentication validation that automatically detects the execution environment and runs appropriate validations for each context.
300
+
301
+
### Validation Contexts
302
+
303
+
The system supports four validation contexts:
304
+
305
+
1.**Build Context** (`build`)
306
+
-**When**: CI build environments without E2E setup
307
+
-**Validations**: Environment variables, NextAuth configuration, endpoint health
308
+
-**Purpose**: Verify core authentication components are working for build steps
309
+
310
+
2.**E2E Context** (`e2e`)
311
+
-**When**: Full E2E test execution with storage state available
0 commit comments