Introduction

This demo app demonstrates how to use Dfns SDK in this configuration:

Prerequisites

For this demo to work, you must first whitelist the domain associated of this app. To do that, go to Dfns Dashboard > Settings > Passkey Domains.

Step 1 - Delegated Registration

Your customers, either new or existing, must register with Dfns first and have credential(s) in our system in order to own and be able to interact with their blockchain wallets.

The delegated registration flow allows you to initiate and and complete the registration process on your customers behalf, without them being aware that the wallets infrastructure is powered by Dfns, i.e. they will not receive an registration email from Dfns directly unlike the normal registration process for your employees. Their WebAuthn credentials are still completely under their control.

Find relevant code in:

Go to Delegated Registration

Step 2 - Delegated Login

The delegated signing flow does not need the end user sign with the WebAuthn credential. The login can be performed on the server side transparent to the end users and obtain a readonly auth token. For example, your server can choose to automatically login the end users upon the completion of delegated registration. In this tutorial, this step is shown as explicit in order to more clearly demonstrate how the interaction works.

Find relevant code in:

Go to Delegated Login

Step 3 - Wallets

Once logged in, the end users can use the wallets they own.

⚠️ You need Complete Step 1 first

The end 🎉

← Back to main page