From 1079a4cedc6ccdf5fbdf63f28208ec82eced7da2 Mon Sep 17 00:00:00 2001 From: Ojas Arora <127867874+Ojas-Arora@users.noreply.github.com> Date: Wed, 31 Jul 2024 09:17:06 +0530 Subject: [PATCH] Adding Github Authentication --- log/login.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/log/login.html b/log/login.html index 5b12a210..78240567 100644 --- a/log/login.html +++ b/log/login.html @@ -60,6 +60,9 @@

RAPIDOC

+
+ +
@@ -103,6 +106,9 @@

RAPIDOC

+ @@ -228,6 +234,18 @@

Hello, Friend!

}); } +function handleGitHubSignIn() { + const provider = new firebase.auth.GithubAuthProvider(); + auth.signInWithPopup(provider) + .then((result) => { + console.log(result); + }) + .catch((error) => { + console.error(error); + }); +} + + document.querySelectorAll('.toggle-password').forEach(item => { item.addEventListener('click', function() {