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

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

## Parameters

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

## Returns

`void`
