docs/self-hosting/auth/providers/wechat.mdx
WeChat Open Platform enables third-party applications to integrate WeChat login.
<Callout type={'warning'}> WeChat Web Login requires a verified WeChat Open Platform account and an approved website application. This process requires business verification in China. </Callout>
<Steps> ### Create Website Application on WeChat Open PlatformAfter your application is approved:
<Callout type={'info'}> Callback domain format:
- **Callback Domain**: `your-domain.com` (without protocol or path)
- **Full Callback URL**: `https://your-domain.com/api/auth/callback/wechat`
| Environment Variable | Type | Description |
|---|---|---|
AUTH_SECRET | Required | Session encryption key, generate with openssl rand -base64 32 |
AUTH_SSO_PROVIDERS | Required | Set to wechat |
AUTH_WECHAT_ID | Required | AppID from WeChat Open Platform |
AUTH_WECHAT_SECRET | Required | AppSecret from WeChat Open Platform |
<Callout type={'tip'}> Go to 📘 Environment Variables for detailed information. </Callout> </Steps>
<Callout type={'info'}> After successful deployment, users will be able to authenticate with WeChat and use LobeHub. </Callout>