rkusa / koa-passport

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

Not work well with @koa/router in Typescript #136

Open LuHugo opened 4 years ago

LuHugo commented 4 years ago

In Typescript, router context type was conflict.

smasinde commented 4 years ago

In Typescript, router context type was conflict.

Any fix for this?

geksiong commented 4 years ago

I faced a similar issue, and was able to get past the conflict based on this post: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/36161#issuecomment-571295417

I'm not sure what the root cause is about, and who (koa-router, or koa-passport and other middleware authors) should be fixing this though.