Nuxt3 Get all entries of auth user

Hi guys,

I’m having a problem with fetching data from Strapi.
Actually it all works but when i try to filter entries by title for example or auth. user It is not working.

here is the code i’m using.

  <script setup>

const { fetchUser } = useStrapiAuth()
const user = await fetchUser()


const { findOne } = useStrapi4()
const response = await findOne('galleries', {author: user.id})
console.log(response)


</script>