I'm currently trying to set a cookie with key 'token' as:
import { setCookie } from "cookies-next";
export const setToken = (token = '') => {
setCookie("token", token, { maxAge: 60 * 60 * 24 * 100 });
};
I checked until yesterday, and this 'token' cookie was being saved in the browser, but when I tried to access the website today, I discovered that the cookie was not being saved, no matter how many times I tried, and even I had not made any modifications.
I'm using
"next": "13.5.4",
"react": "^18",
"react-dom": "^18",
"cookies-next": "^4.1.1",
I found that the 'token' was exceeded the size limit of Cookie.