---
description: >-
  React component used to only render a child component or function, if you have
  access to the passed roleName.
---

# TrixtaAuthComponent

```tsx
import {
  TrixtaAuthComponent,
} from '@trixtateam/trixta-js-core';

<TrixtaAuthComponent 
 roleName=""
>
{children}
</TrixtaAuthComponent>
```

## [Props](https://github.com/trixtateam/trixta-js/blob/master/packages/core/src/React/components/TrixtaAuthComponent/types.ts)
