forked from sawolabs/html-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (26 loc) · 952 Bytes
/
Copy pathindex.html
File metadata and controls
26 lines (26 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<div id="sawo-container" style="height: 300px; width: 300px;"></div>
<div id="status"></div>
<script src="http://websdk.sawolabs.com/sawo.min.js"></script>
<script>
var config = {
containerID: "sawo-container",
identifierType: "email", // can be either 'email' or 'phone_number_sms'
apiKey: "", // add your api key here
onSuccess: (payload) => {
document.getElementById("status").innerHTML =
"Login Success";
},
};
var sawo = new Sawo(config);
sawo.showForm();
</script>
</body>
</html>