Register using SDK
Last updated
Last updated
The delegateRegisterAccount
method is your entry to Passport Protocol. The delegateRegisterAccount
method generates a key, using a unique email/username under your scope, you can read more about scopes and how to .
To use the delegateRegisterAccount
method you'll have to instantiate an instance of Passport
from the SDK and simply call the register function with the relevant parameters
Here we set up a Passport
instance and a KeySigner
we use to sign the obtain the signature from your DOA. We also set up a userInput, which contains a unique username
attached to your scope, and a userDisplayName
which allows users to chose how they'd like their passkey to be saved. The setupEncryption
method is called to create a secure channel of communication with the protocol.
username
username is identifier which we use to uniquely identify user. It may have any value like email, phone number, random string, but it must be unique
johndoe@somemail.com
A successful response will return the following, an account_id
and corresponding identifier_hash