React – Sign in with Email/Phone
Easily add email and phone number verification using Cotter's SDK. Send a magic link to your users via email, SMS or WhatsApp in just a few lines of code.
Last updated
Easily add email and phone number verification using Cotter's SDK. Send a magic link to your users via email, SMS or WhatsApp in just a few lines of code.
Last updated
Cotter's Magic Link authenticates your user using a link. It allows seamless, fast, and secure way for your user to login to your Web App. Follow this simple guide to see how it works!
Import Cotter
Call signInWithLink
to use Magic Link or signInWithOTP
to use OTP, followed by showEmailForm
or showPhoneForm
, and get the response as a promise.
Setup a <div>
with id="cotter-form-container"
that will contain the form.
When the user successfully authenticated, send Cotter's response to your backend to either create a new user or log the user in. Learn how to send Cotter's response and verify it in your backend:
to get your API_KEY_ID
.
To send code/link via SMS or WhatsApp, you'll need to add some balance to you project in the .
Here's a .
Easily customize the form from > Branding.
You can customize the form from the > Branding. You can also .
like Name, Address, etc to the login form.