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. Use Self

Use deeplinking

Integrate Self protocol inside your mobile application using Deeplinking

Import getUniversalLink and SelfAppBuilder from @selfxyz/core

import {getUniversalLink, SelfAppBuilder } from '@selfxyz/core';

Instantiate your Self app using SelfAppBuilder .

const selfApp = new SelfAppBuilder({
    appName: <your-app-name>,
    scope: <your-app-scope>,
    endpoint: <your-endpoint>,
    logoBase64: <url-to-a-png>,
    userIdType: 'hex', // only for if you want to link the proof with the user address
    userId: <user-id>, // uuid or user address
}).build();

Get the deeplink from the Self app object.

 const deeplink = getUniversalLink(selfApp);

You can now use this deeplink to redirect your users to the Self mobile app. If your mobile application uses Kotlin/Java/Swift, reach out to us.

PreviousDisclosuresNextUsing mock passports

Last updated 1 month ago