Logout
POST
/auth/logout/
const url = 'https://example.com/api/auth/logout/';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/logout/ \ --header 'Authorization: Bearer <token>'Revoke all refresh tokens for the current user.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response