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:
Prop
Type
Required
Default
Description
selfApp
SelfApp
Yes
-
The SelfApp configuration object
onSuccess
() => void
Yes
-
Callback function executed on successful verification
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