Passport deserializeUser is always invoked when getting static file.
thanhlq opened this issue · 3 comments
thanhlq commented
Hello Everybody,
I used koa-passport parallel with koa-static, when getting static files, passport initialize and user deserialized are always invoked... I see this really not necessary. Any tips for me to resolve this?
Thanks very much.
rkusa commented
Hi, doesn't adding the koa-static middleware before the passport middleware work?
thanhlq commented
Thanks for your answer - Already put before static. It seems because of something crashed in my koa app configuration. Today it works normally.
rkusa commented
Glad to hear it works now. Feel free to reopen the issue if the issue reappears.