Hi, I want to be able to know whether the user is logged in, using the useAuth() function, but it seemed like the user is never logged in, when using the $sanctumAuth.login.
Im able to call the protected routes on the api, so the csrf token is working as expected, but on locale host and in production, but the user is never set, using useAuth().
What am I doing wrong?

This is the nuxt.config.js file
nuxtSanctumAuth: {
token: false,
baseUrl: process.env.NUXT_PUBLIC_API_URL || "https://endpoint",
endpoints: {
csrf: "/sanctum/csrf-cookie",
login: "/login",
logout: "/logout",
user: "/api/v1/user",
},
csrf: {
headerKey: 'X-XSRF-TOKEN',
cookieKey: 'XSRF-TOKEN',
tokenCookieKey: 'nuxt-sanctum-auth-token',
},
redirects: {
home: "/",
login: "/login",
logout: "/",
},
},