Skip to content

Instantly share code, notes, and snippets.

@skolhustick
Created July 27, 2019 14:10
Show Gist options
  • Save skolhustick/49451e258c61b0878c8e6b938836b777 to your computer and use it in GitHub Desktop.
Save skolhustick/49451e258c61b0878c8e6b938836b777 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<!-- Add two inputs for "phoneNumber" and "code" -->
<input type="tel" id="phoneNumber" />
<input type="text" id="code" />
<!-- Add two buttons to submit the inputs -->
<button id="sign-in-button" onclick="submitPhoneNumberAuth()">
SIGN IN WITH PHONE
</button>
<button id="confirm-code" onclick="submitPhoneNumberAuthCode()">
ENTER CODE
</button>
<!-- Add a container for reCaptcha -->
<div id="recaptcha-container"></div>
<!-- Add the latest firebase dependecies from CDN -->
<script src="https://www.gstatic.com/firebasejs/6.3.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.3.3/firebase-auth.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment