-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending valid error messages from backend during sign in/ signup to the forntend #199
Comments
Welcome on board. Feel free to raise questions or clarifications if any. Awaiting your PR 😊! |
Hi @mslowiak @jmprathab could I take this task? |
@jmprathab @mslowiak Is it for up-for-grabs? I would love to spend more time on it then |
Hi @jmprathab @mslowiak Could i take this issue? |
Here is Code Javascript Code for Frontend <title>Sign Up</title>Sign UpUsername:
Backend (Node.js with Express.js): const express = require('express'); app.use(bodyParser.urlencoded({ extended: false })); app.post('/signup', (req, res) => { if (!username || !password) { res.status(200).json({ message: 'Signup successful!' }); }); app.listen(3000, () => { |
I've tried to sign in with to short password via UI. I got "An error occurred!" error message.
💡 Describe the solution you'd like
We should create error object which will be passed to the frontend. Error object should contain error message, which will be displayed on UI
🤚 Do you want to develop this feature yourself?
Yes I can 👍
The text was updated successfully, but these errors were encountered: