Integrate Sign in with Email on your website

Supported Technologies
phone email
phone email
phone email
phone email
phone email
phone email
phone email
phone email
phone email
phone email

Introduction

Try Sign In Demo

Sign in with Email is a email verification plugin that works on the frontend, similar to Sign in with Gmail. It simplifies global email verification by using OTP/pass code.

Phone email

To seamlessly integrate the plugin into your website, follow the instructions provided below.

Step 1. Get Sign in button code

To verify email id on your website, you need to first create an account with us by clicking on Admin Dashboard button.

Create Account

Create an account with us to generate personalized email verification code for your business.

Step 2. Get verified email id (Backend)

For enhanced security you must implement this step in your application backend.

We have supplied user_json_url (Example - https://user.phone.email/user_abcxd123fgbfg43454.json) in phoneEmailReceiver JS function as explained in step 1.

Please read authenticated email id from JSON URL using PHP, Python, Node JS, JAVA etc as explained below.


 <?php
// Assuming $user_json_url contains the URL path
$json_data = file_get_contents($user_json_url);
$data = json_decode($json_data, true);

$user_email_id = $data['user_email_id'];

// Now you can use $user_email_id as needed
?> 
const https = require('https');
// URL of the JSON file
const user_json_url = "URL_OF_YOUR_JSON_FILE";

https.get(user_json_url, (res) => {
  let data = '';

  // A chunk of data has been received.
  res.on('data', (chunk) => {
    data += chunk;
  });

  // The whole response has been received.
  res.on('end', () => {
    const jsonData = JSON.parse(data);

    // Access user_email_id
    const user_email_id = jsonData.user_email_id;

    console.log("User Email id:", user_email_id);
  });

}).on("error", (err) => {
  console.log("Error: " + err.message);
});
import urllib.request
import json

# URL of the JSON file
user_json_url = "URL_OF_YOUR_JSON_FILE"

# Read JSON data from the URL
with urllib.request.urlopen(user_json_url) as url:
    data = json.loads(url.read().decode())

# Access user_email_id
user_email_id = data["user_email_id"]

print("User Email id:", user_email_id)
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONObject;

public class ReadJsonFromUrl {
    public static void main(String[] args) {
        String userJsonUrl = "URL_OF_YOUR_JSON_FILE";
        try {
            URL url = new URL(userJsonUrl);
            HttpURLConnection connection = (HttpURLConnection) url.openConnection();
            connection.setRequestMethod("GET");
            connection.connect();

            // Read JSON response
            BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            StringBuilder response = new StringBuilder();
            String line;
            while ((line = reader.readLine()) != null) {
                response.append(line);
            }
            reader.close();

            // Parse JSON response
            JSONObject jsonObject = new JSONObject(response.toString());
            String userEmailId = jsonObject.getString("user_email_id");

            System.out.println("User Country Code: " + userEmailId);

            connection.disconnect();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Should you encounter any technical challenges during the integration process, please don't hesitate to reach out to us for assistance.

Contact us WhatsApp Us


Frequently Asked Questions

  • For the first 6 months, you receive 1000 SMS per month.

  • After this initial period, please refer to the pricing page for more details on SMS costs.

  • No, you cannot change it as it is pre-approved.

  • Your business name appears in all OTP/Pass codes that you configure under the profile section in the Admin Dashboard.

  • No, you are not required to register for DLT/10DLC or equivalent because we’ve already handled it for Phone.Email.

  • We saved you the DLT registration cost (approximately 5800 INR) and the efforts needed to get approval for the Sender ID and SMS template.

  • No, our frontend plugin for web and mobile apps includes an inbuilt OTP API.

  • You do NOT need to call the OTP API separately.