Log out (UI)
POST
/auth/logout
const url = 'https://example.com/auth/logout';const options = {method: 'POST'};
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/auth/logoutEnds the session of the cookie and says where the browser should go next.
Authorizations
Section titled “Authorizations”- None
Responses
Section titled “Responses”OK.
Media typeapplication/json
object
logged_out
required
boolean
redirect
required
Where the browser goes next: the identity provider’s end-session endpoint or /login.
string
Example generated
{ "logged_out": true, "redirect": "example"}