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

# Wechat Oauth Poll

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

Opener-page fallback for WeChat web-QR login. The popup's
window.opener is severed by open.weixin.qq.com's COOP header, so the
callback can't postMessage the result back. Instead the callback's
/api/auth/wechat-oauth response is stashed by `state`; the opener
polls here until it appears. Consumed on first hit. No auth — `state`
is the high-entropy CSRF token only the opener + its own popup know.

## 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)
