Skip to content
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

login in problem #56

Open
sleiman23 opened this issue Apr 22, 2023 · 5 comments
Open

login in problem #56

sleiman23 opened this issue Apr 22, 2023 · 5 comments

Comments

@sleiman23
Copy link

sleiman23 commented Apr 22, 2023

No description provided.

@Anshv99
Copy link

Anshv99 commented Apr 30, 2023

i am facing login problem when i click on login button it gives me 500 internal sever error. when i used postman to see what went wrong it says
{
"error": "data and hash arguments required"
}
i think the password or the user.password in line 50 of auth.js in controllers is giving this error

@piyushk2000
Copy link

actualy this is because you have not set JWT in .env file make sure to set that and it will work

@rakistazecho7
Copy link

actualy this is because you have not set JWT in .env file make sure to set that and it will work

what do you mean bro, I have the same problem

@killerTiger10
Copy link

in .env file, you need to describe variable like:
JWT=jkbadkkvahd
that will be used as the secret key for the token you are using in login.

@piyushk2000
Copy link

actualy this is because you have not set JWT in .env file make sure to set that and it will work

what do you mean bro, I have the same problem

Create an .env file, put JWT='xyz'

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

No branches or pull requests

5 participants