0

我正在使用带快递的节点。我有以下路线:

app.get('/facebook/auth/callback', passport.authenticate('facebook', { failureRedirect: '/auth-failure' }, users.authSuccess));

如何使这条路线匹配:

http://localhost:3000/facebook/auth/callback?error_code=2102&error_message=User+is+not+a+test+user+owned+by+the+application#_=_

(由于某些未知原因,这条路线没有捕捉到网址)

4

1 回答 1

0

使用正则表达式

app.get('/facebook/auth/callback?*',passport.authenticate('facebook', { failureRedirect: '/auth-failure' }, users.authSuccess));
于 2013-05-31T13:32:55.410 回答