---
title: "Needs 2Fa"
method: POST
path: "/token/needs_2fa"
tags: ["token"]
---

# Needs 2Fa

`POST /token/needs_2fa`

Tells the frontend whether to show a 2FA screen and which one.

scope=2fa_pending        -> user has 2FA enabled; show TOTP verify screen.
scope=2fa_setup_required -> user's org requires 2FA but user hasn't set it up; show QR + verify.
scope=None               -> no valid temp token; route to normal login.

## Cookies

- `temp_2fa_token` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rowansci/apis/eyrie.md) · [All operations](https://skmtc.dev/rowansci/apis/eyrie/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rowansci/eyrie/revisions/f786577eede6/schema)
