curl --request POST \
--url https://api.example.com/api/auth/logout{
"success": true
}End the current user session and invalidate authentication
curl --request POST \
--url https://api.example.com/api/auth/logout{
"success": true
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Crocantefinancial/crocante-pitch-frontend/llms.txt
Use this file to discover all available pages before exploring further.
Cookie: crocante_session=<encrypted_session_value>
curl -X POST https://api.crocante.com/api/auth/logout \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-b cookies.txt
true{
"success": true
}
Set-Cookie header that clears the session cookie:
crocante_sessiontruetrue in productionStrict//api/auth/logout with session cookiePOST {API_GATEWAY}/{EP_AUTH_LOGOUT}
Authorization: Bearer <access_token>
Content-Type: application/json
Accept: application/json
LoginService.logout() method performs additional client-side cleanup:
/api/auth/logout endpointnonesession-mode-changed eventimport { LoginService } from '@/services/api/auth/login-service';
// Logout is always successful
await LoginService.logout();
// Session cookie is cleared
// localStorage is cleared
// session-mode-changed event is dispatched
console.log('Logged out successfully');
// Listen for session changes
window.addEventListener('session-mode-changed', () => {
console.log('Session state changed');
// Redirect to login page or update UI
});
# Logout with curl
curl -X POST https://api.crocante.com/api/auth/logout \
-H "Content-Type: application/json" \
-b cookies.txt \
-c cookies.txt
# Session cookie is now cleared in cookies.txt