rkusa / koa-passport

Passport middleware for Koa
MIT License
774 stars 55 forks source link

fix: Add missing "ip" to request proxy object #157

Closed tommoor closed 3 years ago

tommoor commented 3 years ago

Attempting to access req.ip inside of the passport callback is not currently possible when using koa-passport

rkusa commented 3 years ago

Thanks for the PR! Would you mind moving it up to the block Koa's context, since this property does not rely on an additional middleware/plugin?

rkusa commented 3 years ago

Thanks for the PR!