SelfQRcodeWrapper

SelfQRcodeWrapper wraps SelfQRcode to prevent server-side rendering when using nextjs. When not using nextjs, SelfQRcode can be used instead.

The SelfQRcodeWrapper component accepts the following props:

Parameter
Type
Required
Default
Description

selfApp

SelfApp

Yes

-

The SelfApp configuration object

onSuccess

() => void

Yes

-

Callback function executed on successful verification

onError

() => void

No

-

Callback function executed on verification error

websocketUrl

string

No

WS_DB_RELAYER

Custom WebSocket URL for verification

size

number

No

300

QR code size in pixels

darkMode

boolean

No

false

Enable dark mode styling

children

React.ReactNode

No

-

Custom children to render

\

Last updated