Can't logout a user using strapi and vue3

This method is not working to logout a strapi user in vue3, nor am I getting any error:

const { logout } = useStrapiAuth();

function handleLogout(e) {

Can you please provide more details?

Where is useStrapiAuth from? Did you build it yourself, or is it from a library you’re using? I don’t recognise it as a core Strapi function.

Is this a Vue3 application running separately, or a plugin you’re running within Strapi?

I think he’s talking about a plugin

its in the docs.