vidly-api-node icon indicating copy to clipboard operation
vidly-api-node copied to clipboard

The auth backend is missing for me

Open ybakhshi opened this issue 5 years ago • 1 comments

There are three collections in my vidly database: Movies, Genres and users but auth is missing.

How to add this collection?

http://localhost:3900/api/auth

ybakhshi avatar Feb 05 '20 22:02 ybakhshi

Auth in this case is not a collection, "/auth" is just an endpoint. The backend server "vidly-api-node", handles the request to that api path.

In fact, auth api and authService.js, handle login and logout, and the only place where user info (email, pass) is, is in users collection. When you want to make an user admin, you add this attribute to the user collection.

Check out the next lesson.

https://codewithmosh.com/courses/357787/lectures/5876740

AgusDG avatar Jun 10 '20 08:06 AgusDG