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 · Reference · all subjects

options/socialproviders

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

socialProviders option fields

The socialProviders option configures social login providers. For each provider, the fields are: clientId (OAuth client ID from provider), clientSecret (OAuth client secret from provider), clientKey (client key used by some providers like TikTok instead of clientId; optional), redirectURI (custom redirect URI for OAuth callback; optional), scope (additional OAuth scopes to request; optional), mapProfileToUser (custom function mapping provider profile to user; optional), disableSignUp (disable sign up for new users; optional), disableImplicitSignUp (disable implicit sign up for new users; optional), overrideUserInfoOnSignIn (override user info with provider user info on sign in; optional), prompt (prompt for authorization code request: 'select_account', 'consent', 'login', 'none', 'select_account consent'; optional), responseMode (response mode: 'query' or 'form_post'; optional), getUserInfo (custom function to get user info from provider; optional), refreshAccessToken (custom function to refresh token; receives stored refresh token, returns new OAuth tokens; optional), verifyIdToken (custom function to verify ID token; receives (token, nonce?, ctx?) where ctx is request endpoint context; replaces provider's built-in verification when set; optional), disableIdTokenSignIn (disable sign in with ID token sent from client; optional), disableDefaultScope (disable provider's default scopes; optional), authorizationEndpoint (custom authorization endpoint URL; optional).

socialProviders example code

import { betterAuth } from "better-auth"; export const auth = betterAuth({ socialProviders: { google: { clientId: "your-client-id", clientSecret: "your-client-secret", redirectURI: "https://example.com/api/auth/callback/google" }, github: { clientId: "your-client-id", clientSecret: "your-client-secret", redirectURI: "https://example.com/api/auth/callback/github" } }, })

Give your agent this brain