---
jsApi: true
title: "[F] getAuthentication"

---
```ts
getAuthentication(program, entity): Authentication | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `entity` | `Interface` \| `Namespace` \| `Operation` |

## Returns

[`Authentication`](../interfaces/Authentication.md) \| `undefined`
