Redirect for first time user with social sign in

How would I change the redirect for a first time user signing in with a social provider, since they are all sign ins?
Solution
const data = await authClient.signIn.social({
    provider: "google", // or any other provider
    callbackURL: "/dashboard", // URL for existing users
    newUserCallbackURL: "/onboarding", // URL for first-time users
  });
Was this page helpful?