Module exposing: approveDeviceOptions
// 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 { DeviceAuthorizationAuthClient } from "./device-authorization-auth-client"
import { deviceAuthorizationMutationKeys } from "./device-authorization-mutation-keys"
export type ApproveDeviceParams<
TAuthClient extends DeviceAuthorizationAuthClient
> = Parameters<TAuthClient["device"]["approve"]>[0]
export type ApproveDeviceOptions<
TAuthClient extends DeviceAuthorizationAuthClient
> = Omit<
ReturnType<typeof approveDeviceOptions<TAuthClient>>,
"mutationKey" | "mutationFn"
>
/**
* Mutati
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key