| 1 | import type { FetchLike } from '../../src/shared/transport.js'; |
| 2 | |
| 3 | export interface MockOAuthFetchOptions { |
| 4 | resourceServerUrl: string; |
| 5 | authServerUrl: string; |
| 6 | /** |
| 7 | * Optional hook to inspect or override the token request. |
| 8 | */ |
| 9 | onTokenRequest?: (url: URL, init: RequestInit | undefined) => void | Promise<void>; |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * Shared mock fetch implementation for OAuth flows used in client tests. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…