Skip to content

fix: add missing logger import to authStore.ts to prevent ReferenceError on all auth operations (closes #2085) - #2091

Merged
riteshbonthalakoti merged 1 commit into
riteshbonthalakoti:gssocfrom
namann5:fix/authstore-missing-logger-import
Jun 7, 2026
Merged

fix: add missing logger import to authStore.ts to prevent ReferenceError on all auth operations (closes #2085)#2091
riteshbonthalakoti merged 1 commit into
riteshbonthalakoti:gssocfrom
namann5:fix/authstore-missing-logger-import

Conversation

@namann5

@namann5 namann5 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes a critical ReferenceError that breaks all authentication in the frontend.

The Bug

\Frontend/src/store/authStore.ts\ makes 15+ calls to \logger.log(), \logger.warn(), and \logger.error()\ across login, signup, magic link, OTP verification, and profile update code paths — but never imports a logger.

This throws \ReferenceError: logger is not defined\ on every auth operation, making the app completely unusable for authentication.

The project has a logger utility at \src/utils/logger.js\ that should be imported.

Fix

Added \import { logger } from '../utils/logger';\ to the imports in \�uthStore.ts.

Closes #2085

…ror (closes riteshbonthalakoti#2085)

authStore.ts makes 15+ calls to logger.log(), logger.warn(), and
logger.error() but never imported the logger utility. Every auth
operation (login, signup, magic link, OTP, profile update) throws
ReferenceError: logger is not defined, breaking all authentication.

Fix: add import { logger } from '../utils/logger';
@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

@namann5 is attempting to deploy a commit to the ritesh Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c25411b6-29bc-46ef-92eb-b6937a9cc529

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@riteshbonthalakoti riteshbonthalakoti added gssoc GirlScript Summer of Code gssoc:approved GSSoC Approved PR level:critical Critical level difficulty quality:exceptional Exceptional code quality type:bug Bug fix labels Jun 7, 2026
@riteshbonthalakoti

Copy link
Copy Markdown
Owner

Superb implementation, @namann5! I've successfully resolved all conflicts in your PR and queued it for merging into gssoc.

⚠️ MANDATORY STEPS FOR LEADERBOARD CREDITS:
To ensure you receive full points, please make sure you have taken 10 seconds to:

Keep up the outstanding work! Let's build together! 🔥

@riteshbonthalakoti
riteshbonthalakoti merged commit 19a00c3 into riteshbonthalakoti:gssoc Jun 7, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC Approved PR gssoc GirlScript Summer of Code level:critical Critical level difficulty quality:exceptional Exceptional code quality type:bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants