feat: Add onPopupWindow callback and update README (#32)
* feat: Add onPopupWindow callback and update README * feat: Pass window reference to onPopupWindow callback --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
parent
c47ea828c3
commit
043efbcf12
1 changed files with 18 additions and 0 deletions
|
|
@ -227,6 +227,7 @@ function useMcp(options: UseMcpOptions): UseMcpResult
|
|||
| `autoReconnect` | `boolean \| number` | Auto reconnect if an established connection is lost, with delay in ms (default: 3000) |
|
||||
| `transportType` | `'auto' \| 'http' \| 'sse'` | Transport type preference: 'auto' (HTTP with SSE fallback), 'http' (HTTP only), 'sse' (SSE only) (default: 'auto') |
|
||||
| `preventAutoAuth` | `boolean` | Prevent automatic authentication popup on initial connection (default: false) |
|
||||
| `onPopupWindow` | `(url: string, features: string, window: Window \| null) => void` | Callback invoked just after the authentication popup window is opened |
|
||||
|
||||
#### Return Value
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue