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



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

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

OAuth 2.0 SAML bearer assertion exchange.

## Parameters [#parameters]

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

## Returns [#returns]

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