Interface: UseLogoutReturn
Properties
error
error:
string|null
Last error message (network, server) — local state is cleared regardless.
isLoggingOut
isLoggingOut:
boolean
true while the logout request is in flight.
logout
logout: () =>
Promise<LogoutResult>
Run the logout flow. Resolves with {success} — local state is always cleared.
Returns
Promise<LogoutResult>