PassportJS Local use in router like middleware

后端 未结 0 1729
北海茫月
北海茫月 2020-12-30 02:00

I have default passportjs with local strategy. I want to use it in my router with controllers.

so the code is:

const User = require(\'../models/User\')         


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