Skip to content

Commit

Permalink
fix: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
HYACCCINT committed Sep 15, 2023
1 parent eafe94c commit 9fc67bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nextjs-end/src/lib/firebase/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ export async function getAuthenticatedAppForUser(session = null) {

if (!session) return noSessionReturn;
}
console.log("session", session);

const decodedIdToken = await adminAuth.verifySessionCookie(session);

const app = initializeAuthenticatedApp(decodedIdToken.uid)
const auth = getAuth(app)
console.log("initializeAuthenticatedApp", app);

// handle revoked tokens
const isRevoked = !(await adminAuth
.verifySessionCookie(session, true)
Expand All @@ -81,7 +81,7 @@ console.log("initializeAuthenticatedApp", app);
const customToken = await adminAuth
.createCustomToken(decodedIdToken.uid)
.catch((e) => console.error(e.message));
console.log("customToken: ", customToken);

if (!customToken) return noSessionReturn;

await signInWithCustomToken(auth, customToken);
Expand Down

0 comments on commit 9fc67bd

Please sign in to comment.