Node Express get user from database in middle ware

后端 未结 0 1221
死守一世寂寞
死守一世寂寞 2021-01-18 15:25

Is it worth it to get the user from the database in each middleware call? is this the right approach for Node?

   jwt.verify(token, config.get(\'jwtPrivateKey         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题