# createOAuthClientAssertion (/docs/auth/api/functions/createOAuthClientAssertion)



[@kysoql/auth](/docs/auth/api) / createOAuthClientAssertion

```ts
function createOAuthClientAssertion(options): Promise<string>;
```

Creates the private\_key\_jwt client assertion accepted by Salesforce token
endpoints.

## Parameters [#parameters]

| Parameter | Type                                                                                   |
| --------- | -------------------------------------------------------------------------------------- |
| `options` | [`OAuthClientAssertionOptions`](/docs/auth/api/interfaces/OAuthClientAssertionOptions) |

## Returns [#returns]

`Promise`\<`string`>
