Documentation Index
Fetch the complete documentation index at: https://docs.kavachos.com/llms.txt
Use this file to discover all available pages before exploring further.
Setup
Get credentials
Go to the WeChat Open Platform and register a website app. Set the authorization callback domain (not a full URL, just the domain):/api/kavach/auth/oauth/callback/wechat.Scopes
Default scopes:snsapi_login
| Scope | What it unlocks |
|---|---|
snsapi_login | Web login, returns openid and unionid |
snsapi_userinfo | Full profile (name, avatar, gender) |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /auth/oauth/authorize/wechat | Redirect to WeChat |
| GET | /auth/oauth/callback/wechat | Handle callback |