BuildForSDGCohort2 / Team-030-Backend

Server side
0 stars 1 forks source link

User(Farmer) Schema and API router [POST] #22

Closed IdamEniIdam closed 4 years ago

IdamEniIdam commented 4 years ago

Farmers will register with some information and then login with their email and password. same email can't be used twice. passport-jwt, jsonwebtoken, passport, bcryptjs. MongoDB Database, more features to be added

jan-far commented 4 years ago

Okay, will review. Thanks. I'm working on the db

kingsley-einstein commented 4 years ago

No need for passport. We could create our own authentication middleware.

kingsley-einstein commented 4 years ago

The goal is to have control over all application concerns. Writing our own authentication middleware ensures auth process is carried out as we desire.

josiaharkson commented 4 years ago

I agree with @kingsley-einstein no need for passport. Creaing our own auth middleware gives us more control.

IdamEniIdam commented 4 years ago

But have you gone through the code @kingsley-einstein