Hi everyone, I've just started working on a new Next.js 13 project. I'm trying to build a frontend for the Renault API which allows people to access their car data etc. I'm using this as a reference for the API: https://github.com/hacf-fr/renault-api
Now my question is how should I manage the user sessions? I want people to use their own credentials to manage their cars.
Input for the login API is username and password. After authentication, I get a JWT and an accountId which is then used for the other API routes to get car data etc.
Does it make sense to use NextAuth? I'm still new to Next.js so I'm not sure what I need here to be able to store the session in the browser so the user doesn't need to log in again after every reload/browser restart.