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

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

Naver credentials from Naver Developers

To use Naver sign in, obtain a client ID and client secret from the Naver Developers portal at https://developers.naver.com/.

Naver redirect URL for local development

For local development, set the Naver redirect URL to http://localhost:3000/api/auth/callback/naver.

Naver redirect URL for production

For production, set the Naver redirect URL to the URL of your application. If you change the base path of the auth routes, you should update the redirect URL accordingly.

Naver provider configuration

To configure the Naver provider, import betterAuth and pass a naver object to the socialProviders option. The naver object requires two properties: clientId (string) and clientSecret (string), both typically loaded from environment variables.

Naver provider configuration example

import { betterAuth } from "better-auth" export const auth = betterAuth({ socialProviders: { naver: { clientId: process.env.NAVER_CLIENT_ID as string, clientSecret: process.env.NAVER_CLIENT_SECRET as string, }, } })

Sign in with Naver using client

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

Naver sign in client example

import { createAuthClient } from "better-auth/client" const authClient = createAuthClient() const signIn = async () => { const data = await authClient.signIn.social({ provider: "naver" }) }

Give your agent this brain