Module exposing: useSignInSso
// 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 SignInSsoOptions,
type SsoAuthClient,
signInSsoOptions
} from "@better-auth-ui/core/plugins/sso"
import { useMutation } from "@tanstack/react-query"
/** Create a mutation for discovering and starting SSO sign-in. */
export function useSignInSso<TAuthClient extends SsoAuthClient>(
authClient: TAuthClient,
options?: SignInSsoOptions<TAuthClient>
) {
return useMutation({
...signInSsoOptions(authClient),
...options
})
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key