設定好的Passport Strategy 可以直接在routes 中使用: ... 不會在被處理;如果認證成功,則回觸發 next ,並可以在 res.user 中拿到被認證的使用者。
確定! 回上一頁