@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
20 lines (16 loc) • 499 B
text/typescript
import type { ssoClient } from "@better-auth/sso/client"
import type { AuthClient } from "../../lib/auth-client"
/** Better Auth client surface added by `ssoClient()`. */
export type SsoAuthClient = AuthClient<{
plugins: [
ReturnType<
typeof ssoClient<{
domainVerification: { enabled: true }
}>
>
]
}>
export type SsoSignInParams = Parameters<SsoAuthClient["signIn"]["sso"]>[0]
export type SsoSignInResult = Awaited<
ReturnType<SsoAuthClient["signIn"]["sso"]>
>