MDK Logo
UI Kitreact-adapterHooks

useCheckPerm

Hook to check if the current user has a specific permission. Reads `permissions` from the headless `authStore` via `@tetherto/mdk-react-adapter`.

Hook to check if the current user has a specific permission. Reads `permissions` from the headless `authStore` via `@tetherto/mdk-react-adapter`.

import { useCheckPerm } from "@tetherto/mdk-react-adapter";

Signature

({ perm, write, cap }: PermissionCheck) => boolean
Package@tetherto/mdk-react-adapter
Requires providerNo