You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!auth)returnconsole.log(Error("Firebase is not configured"));// This is to handle error when there is no `.env` file. So, that app doesn't crash while developing without `.env` file.
34
56
try{
35
-
awaitsignInWithPopup(auth,provider);
57
+
awaitsignInWithPopup(auth,GithubProvider);
58
+
addToast({
59
+
message: "Signed in successfully",
60
+
description: "Hey there!",
61
+
});
62
+
}catch(error){
63
+
console.log("Error while logging in",error);
64
+
}
65
+
};
66
+
67
+
constloginWithGoogle=async()=>{
68
+
if(!auth)returnconsole.log(Error("Firebase is not configured"));// This is to handle error when there is no `.env` file. So, that app doesn't crash while developing without `.env` file.
0 commit comments