BETTER-AUTH. UI
Mutations

signInUsernameOptions

Username/password sign-in mutation options.

Requires the Better Auth username plugin. If TypeScript cannot infer the plugin methods from your client, type or cast authClient as UsernameAuthClient from @better-auth-ui/solid.

Options factory

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

const signIn = createMutation(() => signInUsernameOptions(authClient))

signIn.mutate({ username: "alice", password: passwordInput })

Params

Prop

Type

Last updated on

On this page