To use cookies with Koa, we have the functions: ctx.cookies.set() and ctx.cookies.get(). To set a new cookie, let's define a new route in our Koa app.
確定! 回上一頁