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

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

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `entity` | `Interface` \| `Namespace` \| `Operation` |
| `authConfig` | `Model` \| `Tuple` \| `Union` |

## Returns

`void`
