jeremyben/json-server-auth

error: "You must add a "users" collection to your db"

Closed this issue · 1 comments

I used to work only with json-server but I need some authentification.
So I followed all the instructions from installing json-server-auth and creating db.json with users collections.
But when using POST /login or POST /users, I get an error.
What am I missing?

This is what I get in the console.
Screenshot from 2020-04-01 17-01-38

When I recreated the db.json file, I forget to add an id to the JSON object.
It works fine now.