Login Form with token authentication

i am in the process of developing an mobile application with
Angular 5,
Ionic 3 and i am trying to build an e-commerce app with a login form.
I am trying to build the login form and i want a token authentication with a webapi .
Does anyone knows how can i build it?