CapsuleMobile Class
The CapsuleMobile
class represents a mobile implementation of the Capsule SDK, extending the
CoreCapsule
class.
Methods
Creates an instance of CapsuleMobile.
The environment to use (DEV, SANDBOX, BETA, or PROD).
The API key for authentication.
The relying party ID for WebAuthn.
Additional constructor options.
verifyEmailBiometricsId()
Verifies an email and returns the biometrics ID.
The verification code sent to the email.
verifyPhoneBiometricsId()
Verifies a phone number and returns the biometrics ID.
The verification code sent to the phone.
Registers a passkey for the user.
The user’s email or phone number.
The biometrics ID obtained from verification.
The Web Crypto API instance.
identifierType
'email' | 'phone'
default: "'email'"The type of identifier used.
The country calling code for phone numbers.
A promise that resolves when the passkey is registered.
Logs in the user using either email or phone number.
The user’s email address.
The country calling code for phone numbers.
An array of user wallets.
If neither email nor both phone and countryCode are provided.