-1

护照javascript中特定快递路线的身份验证

how to authenticate specific routes in passport js

有没有一种方法可以验证护照 js 中的特定路由

请帮帮我...

4

1 回答 1

0

只需为该路由指定 Passport 中间件。

app.get('/authenticated', passport.authenticate('strategy'), (req, res) => ...)
于 2021-02-04T03:52:16.647 回答