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

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

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `serviceNamespace` | `Namespace` |
| `auth` | [`ServiceAuthentication`](../interfaces/ServiceAuthentication.md) |

## Returns

`void`
