I'm a building a simple PhoneGap app with Ionic framework and for the back-end I'm using Yii2.
The app is working cool, I'm making requests to get some data from the server and etc...
The problem is, I want to authenticate my users from a database and dont allow using the app without authentication, but the problem is that I'm pretty new to angular and the restfull thing.
I searched and read bunch of articles about authentication via rest api but I could not imagine how things fit together.
So can someone give me some good articles or tutorials which will guide me in this long road? :)
OR
Someone has a working example of authentication with tokens with yii2 and angularjs?
Thanks!