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/figma

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

Figma OAuth credentials setup steps

To get Figma OAuth credentials: sign in to your Figma account and go to the Developer Apps page at https://www.figma.com/developers/apps, click "Create new app", fill out the app details (name, description, etc.), configure your redirect URI (e.g., https://yourdomain.com/api/auth/callback/figma), and note your Client ID and Client Secret.

Figma redirect URI configuration

The redirect URI must be set to match your application's callback URL. If you change the base path of the auth routes, you should update the redirect URI accordingly. The default format is https://yourdomain.com/api/auth/callback/figma.

Figma OAuth default scope

The default OAuth scope for Figma is current_user:read. For additional scopes like file_content:read, refer to the Figma OAuth scopes documentation.

Figma provider configuration in Better Auth

To configure the Figma provider in Better Auth, import betterAuth and pass the provider to the socialProviders option. The configuration requires figma.clientId and figma.clientSecret from environment variables.

Sign in with Figma using client

To sign in with Figma, use the signIn.social function from the auth client with the provider set to "figma".

Give your agent this brain