Log out (browser)
GET
/auth/logout
const url = 'https://example.com/auth/logout';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/auth/logoutEnds the session of the cookie and sends the browser to the identity provider’s end-session endpoint, or to the login page.
Authorizations
Section titled “Authorizations”- None
Responses
Section titled “Responses”To the identity provider or the login page; the cookie is cleared.