TypeScript
const options = {method: 'DELETE'}; fetch('https://api.example.com/v1/regions/global/auth/sessions', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "loggedOut": true } }
End the current session (logout)
Session ended
true
Show child attributes
Was this page helpful?