Passwordless and OTP-less Authentication for your website. Check the documentaion here.
A step by step series of examples that tell you how to get a development env running. These instructions will let you render the form in your speicified container, and allow you to attach successful login callback for futher actions.
npm i sawo
import Sawo from "sawo"
- Login to sawo dev console.
- Create a new project
- Set Project Name
- Set Project Host
- For dev: point to localhost
- For prod: point to your domain.
- Copy the API key
var config = {
// should be same as the id of the container
containerID: "<container_ID>",
// can be one of 'email' or 'phone_number_sms'
identifierType: "phone_number_sms",
// Add the API key, generated in last step
apiKey: "",
// successful Login callback
onSuccess: (payload) => {},
};
let sawo = new Sawo(<configuration>)
Call the showForm method
- "showForm" method is reponsible to render the form in the given container.
sawo.showForm()
After successful setup of Sawo sdk, a login form will rendered in the provided
container. For ex:
- SAWO Labs - GitHub
We use SemVer for versioning. For the versions available,
This project is licensed under the MIT License