Does anyone have an example for how to use the authClient.logout() method?

I’m attempting to make a logout button and am trying to use the authClient.logout() method except I don’t know what arguments it takes (if any) and how i should structure the argument I’m coding in javascript. A simple example would be great!

It doesn’t take any arguments, an example from Kyle is here:

Edit: Actually you can optionally pass it a url to forward on to after logging out, see docs:
https://erxue-5aaaa-aaaab-qaagq-cai.raw.ic0.app/auth-client/classes/authclient.html#logout

Eg
await authclient.logout({returnTo:”https://xkcd.com/710/”})