Closed icangku closed 2 years ago
I console the "authenticated" but it false, how to determine its aunthenticated or not?
I think the problem is your baseURL or rather than the csrf path. It does not work like a directory path where you can step through levels with ...
.
try this:
axios.defaults.baseURL = window.location.origin + '/';
Vue.use(VueSanctum, {
axios: axios,
store,
fetchUserAfterLogin:true,
routes: {
csrf: 'sanctum/csrf-cookie',
login : 'api/admin/auth/login',
logout : 'api/admin/auth/logout',
me : 'api/admin/auth/me'
}
});
its not working at all