Hybrid App Sessions with OAuth, Ionic and AngularJS
gist.github.com