Can we keep the jwt code in some separate place / directory so if one want to use or write it's own authentication module can simply remove that directory and from package configs?
- A new
user model to be created with some info like name, email, password, etc.
- Create & setup it's all basic routes like
GET, POST, PUT, etc.
- Setup
jwt and proper middleware functions i.e., validateToken etc.
Can we keep the
jwtcode in some separate place / directory so if one want to use or write it's own authentication module can simply remove that directory and from package configs?usermodel to be created with some info likename,email,password, etc.GET,POST,PUT, etc.jwtand proper middleware functions i.e.,validateTokenetc.