takanome-dev / astro.go.blog

Blog app with Astro 🚀 on the front and Go 🐹 on the back
https://blog-with-astro-golang.vercel.app/
MIT License
32 stars 5 forks source link

Feature: use cookies instead of local storage #17

Closed takanome-dev closed 11 months ago

takanome-dev commented 11 months ago

Tried using cookies to store the token but for some reason the browser is not saving it. Not sure what I'm doing wrong here

Server https://github.com/takanome-dev/blog-with-astro-golang/blob/b372a75425da0c16e28b9f9172a321e3b11257fa/server/pkg/controllers/auth.controller.go#L110-L116

Client https://github.com/takanome-dev/blog-with-astro-golang/blob/b372a75425da0c16e28b9f9172a321e3b11257fa/client/src/pages/login.astro#L56-L58