---
url: "https://vueda.dev/v3/reference/api/py/vueda.user.views/AllAuthRecoveryCodesView.md"
title: "AllAuthRecoveryCodesView"
---

# AllAuthRecoveryCodesView

## Overview

View (GET) or regenerate (POST) the signed-in user's recovery codes, after the reauthentication VUEDA requires.

The session must hold a recent record of the user's required flow, the same check ``recent_auth_required``
applies, so a user with an MFA authenticator must have confirmed a second factor. Otherwise the view returns
allauth's 401 reauthentication response, which lists the available flows. Every other response keeps
allauth's format.

## `handle` {#handle}

### Signature {#handle-signature}

`handle(self, request, args, kwargs)`

#### Parameters {#handle-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |
| <span id="handle-param-request">request</span> |  | yes |  |  |
| <span id="handle-param-args">args</span> |  | no |  |  |
| <span id="handle-param-kwargs">kwargs</span> |  | no |  |  |

### Source {#handle-source}

`server/vueda/user/views.py:771`

## Source

`server/vueda/user/views.py:761`
