Skip to content

feat(auth): auto-login user on successful registration via secure auth cookie#34

Closed
KGFCH2 wants to merge 1 commit into
HarshYadav152:mainfrom
KGFCH2:feat/auth-register-auto-login
Closed

feat(auth): auto-login user on successful registration via secure auth cookie#34
KGFCH2 wants to merge 1 commit into
HarshYadav152:mainfrom
KGFCH2:feat/auth-register-auto-login

Conversation

@KGFCH2

@KGFCH2 KGFCH2 commented Jun 1, 2026

Copy link
Copy Markdown

What changed

  • Updated registration route to set secure auth cookie
  • Ensured sign-up flow transitions directly into authenticated state

Why

This improves onboarding and avoids insecure client-side token handling.

Testing

  • Register a new user
  • Confirm the user is authenticated automatically
  • Verify no insecure client-side auth token is stored

Checklist

  • Registration flow logs user in
  • Secure auth cookie is set
  • No unsafe client-side auth token usage

Closes #33

@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 49 minutes and 54 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: b6b7862c-9d83-46b4-b2fa-999049f29d8f

📥 Commits

Reviewing files that changed from the base of the PR and between dcfb7ee and 6b398c2.

📒 Files selected for processing (1)
  • gsecure/app/api/v1/auth/register/route.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.

Auto-login user on successful registration via secure auth cookie

2 participants