sync + use InvalidCredentialsError

@iserko @boffbowsh can you please help me to package it up as `0.6.2lyst6`
 this blocks http://jira.lystit.com/browse/IOS-1138
The original was correct?