https://github.com/seegno/angular-oauth2/issues/22
oauthjs/angular-oauth2#22