JWT token in codeigniter (ion-auth)

3.5k Views Asked by At

I use ion auth for user authentication.

how to make JWT token in codeigniter.

send username and password and get token and refresh token.

1

There are 1 best solutions below

0
AudioBubble On BEST ANSWER

in default ion auth don't support JWT

but the solution:

1- edit ion_auth_model and create a function to check user and pass

2-use php jwt lib to make a token

https://github.com/firebase/php-jwt

regard