How to implement JWT refresh tokens in Nuxt 4?
I hope you're all doing well. I've been stuck on a Nuxt issue that's been quite frustrating: I can't figure out how to implement a refresh token system. My backend is built with Django (DRF) using JWT authentication. The API correctly returns both an access and a refresh token, but I don't know how to handle the automatic refresh on the Nuxt side. Could anyone shed some light on the best logic to adopt?