Register using SDK
The register
method is your entry to Passport Protocol. The register
method generates a key, using a passkey with a unique username under your scope, you can read more about scopes and how to configure your scope.
To use the register
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 WebauthnSigner
we use to generate passkeys and signatures. 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.
registration parameters
registration Response
A successful response will return the following, an account_id
and corresponding identifier_hash
Last updated