# resolveRedirectUri

**Kind:** Function

**Source:** [`atloria-monorepo/packages/ui-core/src/components/api-explorer/oauth2.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/ui-core/src/components/api-explorer/oauth2.ts#L375)

Where the authorization server sends the reader back.

DERIVED from the page, never reflected from input: origin + pathname of the docs page the
reader is standing on, with query and fragment dropped. A host may pass one explicitly (a
dedicated callback route), and it is honoured only if it is same-origin — an allowlist of
one, which is the only allowlist a browser client can enforce for itself.

## Signature

```ts
function resolveRedirectUri(location: { origin: string; pathname: string }, configured: string): string
```

## Parameters

| Name | Type |
|---|---|
| `location` | `{ origin: string; pathname: string }` |
| `configured` | `string` |

**Returns:** `string`
