Skip to content

Fix incorrect property name in signInUser error response#3

Draft
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-login-error
Draft

Fix incorrect property name in signInUser error response#3
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-login-error

Conversation

Copy link

Copilot AI commented Feb 3, 2026

The signInUser function returns accessible: null instead of accountId: null when a user is not found, causing the login flow to break.

Changes

  • Fixed return object property from accessible to accountId in lib/actions/user.actions.ts line 117
  • Ensures consistent return type with successful login path
// Before
return parseStringify({accessible:null , error:'user not found '})

// After  
return parseStringify({accountId:null , error:'user not found '})

The calling code in AuthForm.tsx expects user.accountId and would receive undefined with the incorrect property name, preventing proper error handling.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@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)
storeit Error Error Feb 3, 2026 0:50am

Copilot AI changed the title [WIP] Fix login error on user authentication Fix incorrect property name in signInUser error response Feb 3, 2026
Copilot AI requested a review from NAVIN0507 February 3, 2026 12:51
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