Skip to content

WeChat Auth

One portable authentication engine with runtime-specific packages for the browser, Expo, and trusted servers.

Runtime-safe by design

Client configuration accepts app IDs and redirect URIs. WeChat app secrets belong exclusively in @chinafast/wechat-auth-server.

Packages

PackageResponsibility
@chinafast/wechat-auth-coreFramework-free policy, URL construction, state validation, and orchestration
@chinafast/web-wechat-authVanilla browser client plus React and Better Auth client entry points
@chinafast/expo-wechat-authExpo/React Native environment, linking, storage, config plugin, and native SDK adapter
@chinafast/wechat-auth-serverCredentials, code exchange, profiles, server-side state, and Better Auth server integration

Choose a starting point

All clients use the same core flow and can exchange a successful authorization code with your backend for an application session.

Released under the MIT License.