Middleware signout

how can i signout a user session from nextjs middleware. the authclient is not working there because its a client component. using the auth directly
 auth.api.signout({headers: request.headers})
doesnt work as well
Was this page helpful?