Up to date Ionic 2 Authentication using API and JWT

Hey Guys,

Im wondering if some of you hardcore peeps can give me a hand.

Im reading the following article and trying to implement this against my own PHP based API, but although it says its Ionic 2, it doesnt seem to be right so im guessing its using an older implementation of Ionic 2

Im using the following versions according to ionic info

Cordova CLI: 6.3.0
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.36
Ionic App Lib Version: 2.0.0-beta.19

If anyone out there could help me with updating the code given in the example, i would be very grateful