Authentication in an AngularJS app through API (Restangular) and GoogleOAuth