Sign out
Destroy the current session and clear the cookie.
POST
/api/user/signout
Authentication
API Key (cookie: better-auth.session_token)
Responses
200
Signed out
application/jsonok
boolean
REQUIRED
curl -X POST 'https://motioness.com/api/user/signout'
const response = await fetch('https://motioness.com/api/user/signout', { method: 'POST'});const data = await response.json();console.log(data);
import requestsresponse = requests.post('https://motioness.com/api/user/signout')print(response.json())
200
Response
{ "ok": true}
API Playground
Try this endpoint
POST
/api/user/signout