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

---
```ts
setAuthentication(
   program, 
   entity, 
   auth): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `entity` | `Interface` \| `Namespace` \| `Operation` |
| `auth` | [`Authentication`](../interfaces/Authentication.md) |

## Returns

`void`
