Skip to content

Tag: koa

Koa & Passport Missing credentials

I have a Koa server that uses Passport to authenticate users against an Array, and a React client. After successful login, the following requests are not authenticated as the cookie is undefined. The authenticate function’s error parameter has: After browsing the site, I fixed the usual errors, calling …

How to run Generator Functions in Parallel?

Assuming I have a Koa web server with an endpoint like this: Now the client will get the respond after ALL the actions are performed obviously. but the things is each action is dependent on the completion of the previous. Is there a way to execute them in parallel? Note: Turning them to Promises is not an opt…