> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.omni-ward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Web e React

> Abra a verificação por popup ou redirecionamento.

```javascript JavaScript theme={null}
import { launchVerification } from '@omni-ward/sdk-web';

// session.url vem do SEU back-end.
launchVerification({ url: session.url, mode: 'popup', onClose: refreshFromBackend });
```

```jsx React theme={null}
import { OmniWardVerification, useVerificationStatus } from '@omni-ward/sdk-react';

<OmniWardVerification url={sessionUrl} mode="popup" onClose={refresh}>
  Verificar identidade
</OmniWardVerification>;

const { data } = useVerificationStatus(() => fetch('/api/minha-sessao').then((r) => r.json()));
```

> [!NOTE]
>
> Os pacotes do SDK ainda não foram publicados em um registro público. Fale com o suporte para receber acesso.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.