Returns
Promise<void>
Examples
Basic logout
Logout button handler
With confirmation
Logout triggers all subscribers with
null, so your UI can automatically update to show the logged-out state.