When I try to sign in with credentials, it sends a post request, then performs a check, and at the end of it a cookie is sent from backend to the browser. In Dev Tools I can see the stored token, but when I try to console log the token it shows me "undefined"
login POST request
login Route, which at the end I send to the browser a cookie that contains a token
sapper-app/src/server.js
When I try to sign in with credentials, it sends a post request, then performs a check, and at the end of it a cookie is sent from backend to the browser. In Dev Tools I can see the stored token, but when I try to console log the token it shows me "undefined"
sapper-app/src/routes/index.svelte
i don't know exactly what i missed, but locally it works fine