Secbone / koa-session2

Middleware for Koa2 to get/set session
MIT License
153 stars 30 forks source link

destroy (or destory) not called when ctx.logout is called #4

Closed 0cv closed 8 years ago

0cv commented 8 years ago

Beside the fact the destroy function is currently called destory, neither one nor the other (destory / destroy) seems to get called when the ctx.logout() method is triggered (as part of Koa-Passport). I don't know if it's because the function is currently not called correctly, or whether I'm missing anything else.

Secbone commented 8 years ago

@Krisa Oh! I got it! I will fix it soon! :)