I have an external BE server build with NestJS. My colleague have set up few API endpoints that allows me to authenticate the user.
I've implemented the auth system with Redux and RTK Query but looks to me cumbersome and I would like to implement this with Server Actions since the BE server will serve me an HttpOnly Cookie and I could check if the user is logged in simply via server side.
Which is the best way to approach this refactor?