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

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.

Dropbox credentials required

To use Dropbox sign in with Better Auth, you need a client ID and client secret from the Dropbox Developer Portal.

Dropbox OAuth grant type

You can allow 'Implicit Grant & PKCE' for the Dropbox application in the App Console.

Dropbox redirect URL for local development

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

Dropbox redirect URL for production

For production, set the Dropbox 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.

Dropbox provider configuration code

To configure Dropbox as a social provider in Better Auth, import betterAuth and pass the provider configuration to the socialProviders option with clientId and clientSecret as shown: import { betterAuth } from 'better-auth'; export const auth = betterAuth({ socialProviders: { dropbox: { clientId: process.env.DROPBOX_CLIENT_ID as string, clientSecret: process.env.DROPBOX_CLIENT_SECRET as string, }, }, });

Dropbox sign in client usage

To sign in with Dropbox on the client side, use the signIn.social function with the provider set to 'dropbox': import { createAuthClient } from 'better-auth/client'; const authClient = createAuthClient(); const signIn = async () => { const data = await authClient.signIn.social({ provider: 'dropbox' }); };

Give your agent this brain