mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
added a google link function
This commit is contained in:
parent
616434f7a1
commit
048b2f7a30
2 changed files with 14 additions and 1 deletions
|
@ -86,6 +86,18 @@ async function signInWithGoogle() {
|
|||
}
|
||||
}
|
||||
|
||||
function linkWithGoogle() {
|
||||
firebase
|
||||
.auth()
|
||||
.currentUser.linkWithPopup(gmailProvider)
|
||||
.then(function (result) {
|
||||
console.log(result);
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
let dontCheckUserName = false;
|
||||
|
||||
function signUp() {
|
||||
|
|
|
@ -7,4 +7,5 @@ global.sendVerificationEmail = Misc.sendVerificationEmail;
|
|||
//these exports are just for debugging in the browser
|
||||
global.snapshot = db_getSnapshot;
|
||||
global.config = config;
|
||||
global.addnotif = Notifications.add;
|
||||
// global.addnotif = Notifications.add;
|
||||
global.link = linkWithGoogle;
|
||||
|
|
Loading…
Reference in a new issue