TanStackT
TanStack16mo ago
8 replies
living-lavender

HTTP Session Cookie

Hello, I'm new here around tanstack but have been using query and table for a couple months, I ran into an issue today with an assignment using router where my Auth API uses session cookie stores to store a user's session for Auth purposes, and it was not saving it for some reason? And I then went over to nextjs and it worked without any issues, is there something theory wise that I am doing incorrectly

Usage would like similar to below:

const loginResponse = await fetch(
  apiUrl + "/authentication/login",
  {
    method: "POST",
  }
);

const loginStatus = loginResponse.status


And from here the server should have already saved the cookie session?
Was this page helpful?