Hi there! I'm new to next-connect, I've been stuck on this issue for awhile, and I'm really hoping you could help me out.
I'm trying to implement Twitter auth in my app, and at the end of the process my user lands on one of my api urls, where I have all the data relevant to the auth. My goal is to save the auth token I have generated into cookies, and then redirect the user back to my app, something like this:
Hi there! I'm new to
next-connect
, I've been stuck on this issue for awhile, and I'm really hoping you could help me out.I'm trying to implement Twitter auth in my app, and at the end of the process my user lands on one of my api urls, where I have all the data relevant to the auth. My goal is to save the auth token I have generated into cookies, and then redirect the user back to my app, something like this:
But this doesn't work, it gives me a
TypeError: res.cookie is not a function
.Can you please help me to figure out how to solve this?