4
0 Comments

Introducing Magic SMS Login for React Native applications

Do you love Twilio's SMS for your project? We love it too!

SMS login has always been a hassle with lots of configurations and security best practices. With Magic, developers can integrate best-in-class SMS login (think 6-digit, one-time passcode delivered to users via SMS).

It’s just a toggle on your Magic dashboard and a few lines of code to enable SMS login for your application:

import { Magic } from 'magic-sdk'; 
const magicClient = new Magic('API_KEY');
const DID = await magicClient.auth.loginWithSMS(
	{ phoneNumber: '+14151231234', }
);

Under the hood, we use Twilio and take care of all these configurations for
you, so you enjoy a hassle-free SMS login.

To learn more, read the docs.

on November 2, 2021