<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [OAuthProvider](./auth.oauthprovider.md) &gt; [setCustomParameters](./auth.oauthprovider.setcustomparameters.md)

## OAuthProvider.setCustomParameters() method

Sets the OAuth custom parameters to pass in an OAuth request for popup and redirect sign-in operations.

<b>Signature:</b>

```typescript
setCustomParameters(customOAuthParameters: CustomParameters): AuthProvider;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  customOAuthParameters | [CustomParameters](./auth.customparameters.md) | The custom OAuth parameters to pass in the OAuth request. |

<b>Returns:</b>

[AuthProvider](./auth.authprovider.md)

## Remarks

For a detailed list, check the reserved required OAuth 2.0 parameters such as `client_id`<!-- -->, `redirect_uri`<!-- -->, `scope`<!-- -->, `response_type`<!-- -->, and `state` are not allowed and will be ignored.

