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

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.

Kakao provider credentials source

Kakao client ID and client secret can be obtained from the Kakao Developer Portal at https://developers.kakao.com.

Kakao redirect URL for local development

The redirect URL for local development should be set to http://localhost:3000/api/auth/callback/kakao. For production, set it to the URL of your application. If the base path of the auth routes is changed, the redirect URL must be updated accordingly.

Kakao default scopes

The default scopes for Kakao authentication are account_email, profile_image, and profile_nickname.

Kakao account_email scope requires Biz App

Retrieving the account_email scope requires the app to be a Biz App, which is an app that has completed business verification. For more details, refer to the Kakao Login scopes documentation at https://developers.kakao.com/docs/latest/kakaologin/utilize#scope-user.

Kakao provider configuration

To configure the Kakao provider, import the provider and pass it to the socialProviders option of the betterAuth instance. The configuration object requires clientId and clientSecret properties set from environment variables.

Kakao signIn.social example

import { createAuthClient } from "better-auth/client" const authClient = createAuthClient() const signIn = async () => { const data = await authClient.signIn.social({ provider: "kakao" }) } This example shows how to sign in with Kakao using the client. The signIn.social function is called with an object containing provider set to "kakao".

Give your agent this brain