> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# handleOAuthCallback

```ts theme={null}
function handleOAuthCallback(opts?): void;
```

Defined in: [client/browser-oauth.ts:129](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-oauth.ts#L129)

Call from the redirect\_uri page (popup mode) to deliver the authorization
code back to the opener window and close the popup.

## Parameters

### opts?

#### targetOrigin?

`string`

## Returns

`void`
