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

# unlinkOAuthProvider

[API Reference](/api-reference/modelence/client/functions/../../../index) / [modelence](/api-reference/modelence/client/functions/../../index) / [client](/api-reference/modelence/client/functions/../index) / unlinkOAuthProvider

> **unlinkOAuthProvider**(`options`): `Promise`\<`void`>

Defined in: [packages/modelence/src/auth/client/index.ts:251](https://github.com/modelence/modelence/blob/f614ecc6811cdda9670d612872c8ff49a49c5e28/packages/modelence/src/auth/client/index.ts#L251)

Unlink an OAuth provider from the currently signed-in user's account.

## Example

```ts theme={null}
await unlinkOAuthProvider({ provider: 'github' });
```

## Parameters

| Parameter          | Type                                       | Description                                          |
| ------------------ | ------------------------------------------ | ---------------------------------------------------- |
| `options`          | \{ `provider`: `"google"` \| `"github"`; } | -                                                    |
| `options.provider` | `"google"` \| `"github"`                   | The OAuth provider to unlink ('google' or 'github'). |

## Returns

`Promise`\<`void`>
