# JwtBearerAssertionOptions (/docs/auth/api/interfaces/JwtBearerAssertionOptions)



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

Options for creating a Salesforce JWT bearer assertion.

## Properties [#properties]

| Property                                                     | Modifier   | Type                                                             | Description                                                                              |
| ------------------------------------------------------------ | ---------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| <a id="api-property-clientid" /> `clientId`                  | `readonly` | `string`                                                         | Connected App consumer key / OAuth client ID.                                            |
| <a id="api-property-username" /> `username`                  | `readonly` | `string`                                                         | Salesforce username associated with the authorization flow.                              |
| <a id="api-property-loginurl" /> `loginUrl`                  | `readonly` | `string`                                                         | Salesforce login/My Domain origin used as the JWT audience.                              |
| <a id="api-property-privatekey" /> `privateKey`              | `readonly` | [`PrivateKeyInput`](/docs/auth/api/type-aliases/PrivateKeyInput) | RS256 signing key with an explicit source type.                                          |
| <a id="api-property-expiresinseconds" /> `expiresInSeconds?` | `readonly` | `number`                                                         | Default: 180 seconds. Maximum: 300 seconds.                                              |
| <a id="api-property-now" /> `now?`                           | `readonly` | `number`                                                         | Unix timestamp in seconds. Defaults to the current time. Useful for deterministic tests. |
