Skip to content

Atif Furqaan#84

Open
Atif-Furqaan wants to merge 1 commit intoboolean-uk:mainfrom
Atif-Furqaan:main
Open

Atif Furqaan#84
Atif-Furqaan wants to merge 1 commit intoboolean-uk:mainfrom
Atif-Furqaan:main

Conversation

@Atif-Furqaan
Copy link
Copy Markdown

No description provided.

const prisma = new PrismaClient();

const jwtSecret = 'mysecret';
const jwtSecret = "mysecret";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be a good idea to get the jwtSecret from the .env file

return res.status(401).json({ error: 'Invalid username or password.' });
}
if (!foundUser) {
return res.status(401).json({ error: "Invalid username or password." });
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of the correct error code!

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