Skip to content

fix(login): remove client-side authToken cookie handling and rely on secure server cookie#36

Closed
KGFCH2 wants to merge 1 commit into
HarshYadav152:mainfrom
KGFCH2:fix/login-client-cookie-handling
Closed

fix(login): remove client-side authToken cookie handling and rely on secure server cookie#36
KGFCH2 wants to merge 1 commit into
HarshYadav152:mainfrom
KGFCH2:fix/login-client-cookie-handling

Conversation

@KGFCH2

@KGFCH2 KGFCH2 commented Jun 1, 2026

Copy link
Copy Markdown

What changed

  • Removed insecure client-side auth token cookie set
  • Shifted login flow to rely on secure server cookie authentication

Why

Reduces attack surface and aligns with secure auth best practices.

Testing

  • Perform login flow
  • Confirm authentication succeeds
  • Verify no client-side token cookie is written

Checklist

  • Client-side auth cookie handling removed
  • Login still works
  • Security improved

Closes #35

@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

@KGFCH2 is attempting to deploy a commit to the Harsh Yadav's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@KGFCH2, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 46 minutes and 55 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 18595ec4-0518-4c12-a9f1-a47f4d6c30e8

📥 Commits

Reviewing files that changed from the base of the PR and between dcfb7ee and 72602d0.

📒 Files selected for processing (1)
  • gsecure/app/(auth)/login/page.js
✨ 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.

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.

Remove client-side authToken cookie handling and rely on secure server cookie

2 participants