diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..fb0d6f2 --- /dev/null +++ b/composer.json @@ -0,0 +1,6 @@ +{ + "require": { + "laravel/sanctum": "^4.0", + "laravel/ui": "^4.5" + } +} diff --git a/src/App.js b/src/App.js index b45f4ef..826e985 100644 --- a/src/App.js +++ b/src/App.js @@ -18,13 +18,16 @@ function App() { const getCSRF = async ()=>{ try { await http.get('/sanctum/csrf-cookie') + const res= await http.get('/api/user') + console.log(res.data); } catch (error) { console.error(error) } } return ( -