How to include token in API rest |
07-07-2017, 12:41 AM
(This post was last modified: 07-08-2017, 04:31 AM by arisroyo. Edit Reason: Change constant for generated key )
Here my example
1. I create Libraries Jsonwebtokens.php and put it on /application/libraries 2. Download https://github.com/firebase/php-jwt and put on /application/third_party/firebase-jwt 3. Here how I used it Example: PHP Code: $this->load->library('jsonwebtokens'); Jsonwebtokens.php PHP Code: <?php
There are those who tell lies with meaning behind them and those meaning less lies!
|
Messages In This Thread |
How to include token in API rest - by avasquez - 07-04-2017, 07:53 AM
RE: How to include token in API rest - by rtenny - 07-05-2017, 01:24 AM
RE: How to include token in API rest - by InsiteFX - 07-05-2017, 04:00 AM
RE: How to include token in API rest - by arisroyo - 07-07-2017, 12:41 AM
|