Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old import #37

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/main/utils/firebase.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// src/main/utils/firebase.js
import path from "path";
import { SecretManagerServiceClient } from "@google-cloud/secret-manager";
import dotenv from "dotenv";
import { initializeApp } from "firebase/app";
import {
Expand All @@ -12,7 +11,7 @@
import { initiateGoogleAuth } from "./auth_manager.js";
import {
getGoogleToken,
setGoogleToken,

Check warning on line 14 in src/main/utils/firebase.js

View workflow job for this annotation

GitHub Actions / lint

'setGoogleToken' is defined but never used
clearGoogleToken,
} from "./safe_storage.js";

Expand Down Expand Up @@ -50,7 +49,7 @@
"[Firebase] No authentication token found, initiating Google auth...",
);
// Initiate Google authentication
const authResult = await initiateGoogleAuth();

Check warning on line 52 in src/main/utils/firebase.js

View workflow job for this annotation

GitHub Actions / lint

'authResult' is assigned a value but never used
tokenData = getGoogleToken();

if (!tokenData || !tokenData.idToken) {
Expand Down Expand Up @@ -98,7 +97,7 @@
// Initialize Firebase
const firebaseApp = initializeApp(firebaseConfig);
const auth = getAuth(firebaseApp);
const db = getFirestore(firebaseApp);

Check warning on line 100 in src/main/utils/firebase.js

View workflow job for this annotation

GitHub Actions / lint

'db' is assigned a value but never used

const userCredential = await signInWithCredential(auth, credential);
console.log("[Firebase] successfully authenticated:", userCredential.user);
Expand Down
Loading