TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/akevalion/life_cost/llms.txt
Use this file to discover all available pages before exploring further.
/logout endpoint terminates the current user’s authenticated session. It delegates to Flask-Login’s logout_user() function, which clears the session cookie from the browser, then issues an HTTP redirect to the application root. This is a standard browser-navigation endpoint — it does not return a JSON body.
Authentication
@login_required is enforced. Unauthenticated requests (e.g. from a user who has already logged out or whose session has expired) are automatically redirected by Flask-Login’s unauthorized_handler before the route logic runs.
Behavior
- Calls
logout_user()to invalidate the current session and remove the session cookie. - Issues an HTTP
302redirect to/(theindexroute).
Response
There is no JSON response body. The endpoint always returns an HTTP redirect. Client applications should follow the redirect or simply navigate the browser to the logout URL.Example
Because this is a redirect endpoint, the simplest way to log out is plain browser navigation:After logout, the browser is redirected to
/. Because the session cookie has been cleared, the index route immediately redirects the now-unauthenticated visitor to /google_login, effectively returning them to the sign-in screen.