Skip to content

OTPless-Login-Project I have used HTML,CSS,JAVASCCRIPT to create a OTPless login, i have added two options to login whaatsapp, google. It is an otpless sdk for a basic website's authentication process. By- Rahul Patel Enrolment no.: 2203031300025

Notifications You must be signed in to change notification settings

31RahulPatel/OTPLESS-workshops-project

Repository files navigation

OTPless

Javascript Demo

Steps to add OTPless SDK to your Website

  1. Add OTPLESS Sign in

    Add the following code to your sign up/ sign in page where you want to embed your sign in functionality.

    <div id="otpless-login-page"></div>
    <script type="text/javascript" src="https://otpless.com/auth.js" cid="YOUR_CID_HERE"></script>
    // Replace with your cid
  2. Retrieve User's Information

    Implement the following function to retrive the user data upon successful authentication of the user.

    <script type="text/javascript">
        function otpless(otplessUser) {
            alert(JSON.stringify(otplessUser));
        }
    </script>

Codes of Interest

Received User Data Format

// otpless user Format
{
    "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "timestamp": "YYYY-MM-DD HH:MM:SS",
    "timezone": "+XX:XX",
    "mobile": {
        "name": "User Name",
        "number": "User Mobile Number"
    },
    "email": {
        "name": "User Name ",
        "email": "User Email"
    }
}

About

OTPless-Login-Project I have used HTML,CSS,JAVASCCRIPT to create a OTPless login, i have added two options to login whaatsapp, google. It is an otpless sdk for a basic website's authentication process. By- Rahul Patel Enrolment no.: 2203031300025

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published