@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
15 lines (13 loc) • 551 B
text/typescript
import type { siweClient } from "better-auth/client/plugins"
import type { AuthClient } from "../../lib/auth-client"
/** Better Auth client surface added by siweClient(), including throw-aware responses. */
export type SiweAuthClient = AuthClient<{
plugins: [ReturnType<typeof siweClient>]
}>
export type SiweNonceResult = Awaited<
ReturnType<SiweAuthClient["siwe"]["nonce"]>
>
export type SiweVerifyParams = Parameters<SiweAuthClient["siwe"]["verify"]>[0]
export type SiweVerifyResult = Awaited<
ReturnType<SiweAuthClient["siwe"]["verify"]>
>