How to set authentication to a codeigniter and ionic app

I have created an ionic4 test app and its backend is codeigniter and database. The ionic app contains a register form and its value is added to database using codeigniter. I need to add security authentication to this. How can i use this?