简体   繁体   中英

node.js: How to use passport with koa

Passport's website claims

Passport can be unobtrusively dropped in to any Express-based web application.

Can I use it with Koa as well? If so, what would be a good starting point to learn how to do so? I am thinking about a classic username/password strategy using sessions (maybe with Redis).

Please excuse this stupid question, I'm just getting started with Node and there are too many things to learn at once and my head is spinning.

have you tried this ?

koa-passport

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM