> ## 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.

# oauthProvider

```ts theme={null}
function oauthProvider(options?): OAuthServerProvider;
```

Defined in: [server/auth/oauth/provider.ts:32](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/auth/oauth/provider.ts#L32)

Creates an in-memory OAuth 2.1 server provider with Dynamic Client Registration support.

Suitable for development, testing, and simple deployments where persistence is not required.
All state (clients, codes, tokens) is held in memory and lost on restart.

## Parameters

### options?

[`OAuthProviderOptions`](/api/server/interfaces/OAuthProviderOptions) = `{}`

## Returns

`OAuthServerProvider`
