Function
isV2OAuthCallback
(url: URL, prefix: string)
Source from the content-addressed store, hash-verified
| 306 | /** Whether a connected-account callback carries v2's state prefix. Reads the |
| 307 | * query only: a callback without `state` in its query stays with v1. */ |
| 308 | const isV2OAuthCallback = (url: URL, prefix: string): boolean => |
| 309 | url.searchParams.get("state")?.startsWith(prefix) === true; |
| 310 | |
| 311 | /** Whether a pathname is below v2's analytics proxy root, or exactly v2's |
| 312 | * error tunnel. */ |
Tested by
no test coverage detected