new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Authentication · all subjects

social sign-on/wechat

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

WeChat provider registration on Open Platform

To use WeChat sign in, register a website application on the WeChat Open Platform at https://open.weixin.qq.com/. Set the Authorization Callback Domain to the better auth domain and obtain the App ID and App Secret.

WeChat provider configuration with clientId and clientSecret

To configure the WeChat provider, import the provider and pass it to the socialProviders option of the auth instance. The wechat provider requires clientId set to the App ID and clientSecret set to the App Secret as environment variables.

WeChat provider optional configuration options

The WeChat provider accepts optional configuration: lang (set to 'cn' or 'en' to customize UI language for the WeChat login page) and scope (array for custom scopes, with 'snsapi_login' available for web QR code login).

WeChat sign in example with signIn.social

To sign in with WeChat, use the signIn.social function from the client with the provider set to 'wechat'.

WeChat provider supports Website Application platform type

The WeChat provider currently supports the Website Application platform type, which enables WeChat QR code login for web applications.

WeChat redirect URL domain must match Open Platform configuration

The redirect URL domain must match the domain configured in the WeChat Open Platform.

Give your agent this brain