Compatibility
NOTESee our FAQs on supported country codes.
Use Cases
- Log in and create wallets for end users with a one-time code sent by SMS to their phone number.
Usage
You can use SMS login by creating a project with our CLI tool and picking ‘SMS’ when prompted. Alternatively, you can directly integrate it into your existing projects using the sample below. Refer to the API documentation for information on how to install and initialize Magic for your existing project. Once you’ve created a Magic instance, log users in usingloginWithSMS
. Once logged in, you will receive a DID token that can be used with our Admin SDK to verify the user’s information and wallet address on the backend. You can also retrieve the user’s wallet address and email using the user
module’s getInfo
function for Web/React Native and getMetadata
for iOS, Android and Flutter.
JavaScript