No admin token set for new admin user #37
-
I created a new user with Admin rights using the bash file. But it gives me 401 unauthorized when I try to login on admin portal with the admin credentials. I am not sure what I am doing wrong here. Can you suggest what the issue might be, because I have set up the env variables and the DB correctly. Everything else is working fine, even the user login and the home screen flow is working fine. Although there is one thing that I noticed. I also checked the DB and the AdminToken is empty as even though I ahve multiple users with Admin rights created already. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
There is no route at /users/signin. The main sign in page should be accessible at http://localhost:3000/signin, and there is a link to the admin login, which will allow you to go to the admin sign in page at http://localhost:3000/admin/signin. |
Beta Was this translation helpful? Give feedback.
Backend is running on port 4000, so how is the request being sent to port 3000 (http://localhost:3000/users/signin)? There is an issue with the env file. Try restarting the client.