This commit is contained in:
Boof 2023-04-11 13:50:39 +02:00 committed by GitHub
parent ddb1e93b4c
commit c62f25fdbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ const firebaseConfig = {
};
function googleSign() {
document.getElementById("googleSignButton").addEventListener("click", function() {
signInWithRedirect(auth, provider);
}
});
// Initialize Firebase
const app = initializeApp(firebaseConfig);

View File

@ -16,7 +16,7 @@
<input id="passInput" type="password" name="password" placeholder="Password">
<button type="submit">Sign up</button>
</form>
<button onclick="googleSign()">Sign in/up with google</button>
<button id="googleSignButton">Sign in/up with google</button>
</body>
</html>