vercel / vercel/next-learn

Invalid credentials at Login

Open
#1,024 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
4.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Hi,

When trying to Login in learn Dashboard app, I have this error on screen below to login form:

"Invalid credentials"

In actions.ts function authenticate the output of console.log(formdata) is:

FormData {
'$ACTION_REF_1': '',
'$ACTION_1:0': '{"id":"60b11314430f6e48c77351dfd87ceae1f0341f3d2b","bound":"$@1"}',
'$ACTION_1:1': '["$undefined"]',
'$ACTION_KEY': 'k3687519312',
email: 'user@nextmail.com',
password: '123456',
redirectTo: 'http://localhost:3000/dashboard'
}

Any help?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in actions.ts at the authenticate function and reproduce the login with user@nextmail.com and the reported password. Inspect how the submitted FormData is handled and how the credentials result is surfaced. Done means the sample login no longer shows "Invalid credentials" and reaches the dashboard.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.