useTrixtaAccess

A react hook that will return true if the given roleName has access.

import { useTrixtaAccess } from '@trixtateam/trixta-js-core';
const hasAccess = useTrixtaAccess({ roleName });

Options

  • roleName : string

    • Trixta role name

Returns

  • boolean

    • Will be true if the roleName mentioned above has access.

Last updated