Use superagent.agent()
(instead of plain old superagent
) to make requests have persistent cookies. See ‘Saving cookies’ in the superagent docs, or the code examples: agency.js, controller.test.js.
Use superagent.agent()
(instead of plain old superagent
) to make requests have persistent cookies. See ‘Saving cookies’ in the superagent docs, or the code examples: agency.js, controller.test.js.