React Native & Expo
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.
Verifies an email and returns the biometrics ID.
The verification code sent to the email.
The biometrics ID.
Verifies a phone number and returns the biometrics ID.
The verification code sent to the phone.
The biometrics ID.
Registers a passkey for the user.
The user’s email or phone number.
The biometrics ID obtained from verification.
The Web Crypto API instance.
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 user’s phone number.
The country calling code for phone numbers.
An array of user wallets.
If neither email nor both phone and countryCode are provided.
Was this page helpful?