-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (42 loc) · 1.25 KB
/
index.html
File metadata and controls
48 lines (42 loc) · 1.25 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<main>
<form id="signup">
<input type="email" id="email" placeholder="email">
<input type="password" id="password" placeholder="password">
<button>Sign Up</button>
</form>
<form id="signin">
<input type="email" id="email" placeholder="email">
<input type="password" id="password" placeholder="password">
<button>Sign in</button>
</form>
<button id='logout'>Log Out</button>
</main>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.0.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.0.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.0.0/firebase-firestore.js"></script>
<script>
// Paste in your web app's Firebase configuration below
var firebaseConfig = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: ""
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
// make auth and firestore references
const auth = firebase.auth();
const db = firebase.firestore();
</script>
<script src="scripts/auth.js"></script>
</body>
</html>