Skip to content

Conversation

Copy link

Copilot AI commented Feb 3, 2026

Firebase client initialization was failing due to getApps being accessed as a property instead of invoked as a function.

Changes

firebase/client.ts

  • Fixed !getApps.length!getApps().length to properly check existing Firebase app instances

lib/actions/auth.action.ts

  • Corrected variable names: decodeclaimsdecodedClaims, userReocorduserRecord
  • Fixed error message typo: "instrd" → "instead"
// Before
const app = !getApps.length ? initializeApp(firebaseConfig) : getApp();

// After  
const app = !getApps().length ? initializeApp(firebaseConfig) : getApp();

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/prepwise/prepwise/node_modules/next/dist/compiled/jest-worker/processChild.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
prepwise Error Error Feb 3, 2026 0:56am

Co-authored-by: NAVIN0507 <146793816+NAVIN0507@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the bug in authentication system Fix Firebase initialization and auth variable naming Feb 3, 2026
Copilot AI requested a review from NAVIN0507 February 3, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants