---
title: "Validate a challenge"
method: POST
path: "/auth/mfa/validate"
tags: ["Auth"]
---

# Validate a challenge

`POST /auth/mfa/validate`

## Request

- Base URL: `https://app.didattica.polito.it/api`
- URL: `https://app.didattica.polito.it/api/auth/mfa/validate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polito/apis/polito-students-api/docs/auth/mfa/validate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- ValidateMfaRequest
  - `serial` string, required
  - `nonce` string, required
  - `signature` string, required
  - `decline` boolean

## Response `200`

The request has succeeded.

- object
  - `data` object, required
    - `success` boolean, required

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `500`: Server error

---

[API](https://skmtc.dev/polito/apis/polito-students-api.md) - [All operations](https://skmtc.dev/polito/apis/polito-students-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polito/apis/polito-students-api/revisions/9d87728aaa56?raw)
