# OAuth2Mode

**Kind:** Type

**Source:** [`atloria-monorepo/apps/web/src/app/app/projects/[id]/technical-docs/components/PlaygroundOAuth2Config.tsx`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/app/app/projects/[id]/technical-docs/components/PlaygroundOAuth2Config.tsx#L45)

Discovery or endpoints — never both.

Not a UI simplification: `toPublicOAuth2Scheme` returns the OpenID Connect scheme as soon as a
discovery URL is present and never looks at the endpoints. Offering both at once would leave
two fields on screen whose values the docs site silently ignores.

## Definition

```ts
'discovery' | 'endpoints'
```
