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



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

```ts
function authenticateJwtBearer(options): Promise<SalesforceOAuthSession>;
```

OAuth 2.0 JWT bearer token exchange. The assertion can be created with
createJwtBearerAssertion.

## Parameters [#parameters]

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

## Returns [#returns]

`Promise`\<[`SalesforceOAuthSession`](/docs/auth/api/interfaces/SalesforceOAuthSession)>
