BETTER-AUTH. UI
Mutations

signInSocialOptions

Social sign-in mutation options.

Starts the provider OAuth flow and redirects through Better Auth.

Options factory

import { signInSocialOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"

const signInSocial = createMutation(() => signInSocialOptions(authClient))

signInSocial.mutate({
  provider: "github",
  callbackURL: "/dashboard"
})

Params

Prop

Type

Last updated on

On this page