I wanna set jwt token into http cookie

Next.js is a react framework, you can do the same thing in react.