#6 CodeIgniter 3.x Restful #API Library – REST API with Token Authorization


:: API Authorization :: Just add one more parameter to your API Configuration Array `requireAuthorization` like Now, create a authentication API. Create a new route Debug API Route Show Error :: Token is not define. Remove `requiresAuthorization` parameter if the authorization is removed from the API. If you want to pass the token in the header. In which you can also change the name of the header by going to jwt config file. Generate a token Copy this code and paste in the API function. Like this Successfully generated authentication Token. can change the name of the header and the expiry time in the jwt config file. How to access token data.

Leave a Reply

Your email address will not be published. Required fields are marked *