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