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

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

## Parameters

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

## Returns

`void`
