---
title: "Wechat Oauth Qr Poll"
method: GET
path: "/api/auth/wechat-oauth/qr-poll"
---

# Wechat Oauth Qr Poll

`GET /api/auth/wechat-oauth/qr-poll`

Long-poll WeChat for the scan/confirm of the QR minted by /qr.

Returns one of:
  {"ok": True, token, user}        — confirmed (also stashed for /poll)
  {"ok": False, "pending": True, "scanned": bool}
  {"ok": False, "error": "expired" | "cancelled" | "..."}
The SPA re-calls on `pending` (each call already blocks ~25s upstream,
so this is not a busy loop).

## Query parameters

- `state` string

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

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