For Basic Authentication, you need passport-http , not passport-local (which is meant for authentication through form data). Try this: var BasicStrategy = ...
確定! 回上一頁