---
jsApi: true
title: "[F] $useAuth"

---
```ts
$useAuth(
   context, 
   serviceNamespace, 
   authConfig): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `serviceNamespace` | `Namespace` |
| `authConfig` | `Model` \| `Tuple` \| `Union` |

## Returns

`void`
