Self Docs
  • Self Protocol
  • Use Self
    • Quickstart
    • Disclosures
    • Use deeplinking
    • Using mock passports
  • SDK Reference
    • SelfAppBuilder
    • SelfBackendVerifier
    • SelfQRcodeWrapper
  • Contract Integration
    • Basic Integration
    • Frontend Configuration
    • Deployed Contracts
    • Airdrop Example
    • Happy Birthday Example
    • Utilize Passport Attributes
  • Verification in the IdentityVerificationHub
  • Technical Docs
    • Overview
    • Architecture
Powered by GitBook
On this page
  1. SDK Reference

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

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

PreviousSelfBackendVerifierNextBasic Integration

Last updated 1 month ago