How to make token based authentication login in codeigniter 3

2.6k Views Asked by At

I am working with an API project build in codeigniter which have login and register methods, now I have to implement the token based login. Please suggest how can I do the same. I am using https://github.com/chriskacerguis/codeigniter-restserver for basic API configurations.

1

There are 1 best solutions below

1
On

Use Microtime function of php and then md5 it. you will get unique token for every user login.