build role based authentication using nodejs jwt mongoose | Comidoc