Closed IdamEniIdam closed 4 years ago
Okay, will review. Thanks. I'm working on the db
No need for passport. We could create our own authentication middleware.
The goal is to have control over all application concerns. Writing our own authentication middleware ensures auth process is carried out as we desire.
I agree with @kingsley-einstein no need for passport. Creaing our own auth middleware gives us more control.
But have you gone through the code @kingsley-einstein
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