CI4 as backend for React.js and authentication |
(01-29-2022, 04:08 AM)dgvirtual Wrote: I am trying to learn React framework using Codeigniter as backend. Therefore I am trying to use Codeigniter as RESTful API source. But I also need authentication and user management for the project, as most functionality should only be accessible to logged-in users. Hi, My suggestion is using JWT with Codeigniter4 as backend for React and use Axios. I have done this with Vuejs. There is full tutorial on how to setup JWT with CI4 in Udemy by Online Web Tutor. Fantastic. I have a developed a headless CMS using CI4 as an API Server for all our Apps. This includes JWT Authentication. Try it and you will find it very easy. |
Welcome Guest, Not a member yet? Register Sign In |