Module exposing: signInSsoOptions
// Source: https://github.com/better-auth-ui/better-auth-ui | License: MIT | Copyright 2025 daveycodez
// Provided via justclaw.it.com; keep this notice with the code.
import type { MutationOptions } from "@tanstack/query-core"
import type { BetterFetchError } from "better-auth/client"
import type { SsoAuthClient } from "./sso-auth-client"
import { ssoMutationKeys } from "./sso-mutation-keys"
export type SignInSsoParams<TAuthClient extends SsoAuthClient> = Parameters<
TAuthClient["signIn"]["sso"]
>[0]
export type SignInSsoOptions<TAuthClient extends SsoAuthClient> = Omit<
ReturnType<typeof signInSsoOptions<TAuthClient>>,
"mutationKey" | "mutationFn"
>
/** Mutation options for SSO discovery and sign-in. */
export function signInSsoOptions<TAuthClient extends SsoAuthClient>(
authC
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key