Mutations
useApproveDevice
Approve a verified device authorization request.
Requires deviceAuthorizationClient() from better-auth/client/plugins. Call this mutation only after the current session has verified and claimed the user code.
Usage
import { useApproveDevice } from "@better-auth-ui/react"
const approveDevice = useApproveDevice(authClient)
approveDevice.mutate({
userCode: "ABCD1234"
})Options factory
import { approveDeviceOptions } from "@better-auth-ui/react"
const options = approveDeviceOptions(authClient)Params
Prop
Type
Last updated on