logout

suspend fun Umami.logout()

Logs out the current user.

This function sends a request to the logout endpoint to invalidate the current session on the server. It then removes the locally stored Authorization header, effectively logging the user out on the client side as well.

After calling this function, subsequent requests will be unauthenticated until a new login is performed.