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
test(auth): add unit tests for OAuth state CSRF extraction
Adds the extractCsrfFromState helper (mirrors AuthManager logic) and a
dedicated describe block with 6 test cases covering:
- base64 JSON format (v0.0.9+ cloud function)
- raw hex format (≤v0.0.7 cloud function)
- null / empty state
- base64 JSON without csrf field (fallback)
- non-JSON base64 garbage (fallback)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments