UNPKG

@nhost/react

Version:

Nhost React library

13 lines 428 B
/** * Use the hook `useHasuraClaim` to get the value of a specific Hasura claim of the user. * * @example * ```tsx * // if `x-hasura-company-id` exists as a custom claim * const companyId = useHasuraClaim('company-id') * ``` * * @docs https://docs.nhost.io/reference/react/use-hasura-claim */ export declare const useHasuraClaim: (name: string) => string | string[] | null; //# sourceMappingURL=useHasuraClaim.d.ts.map