Minimize promises cascading for improved performance
Add logout API method