dhanifudin / rest-in-ci

A simple JWT implementation on Codeigniter
MIT License
23 stars 18 forks source link

Token is right or worng #5

Open Siddheshshah89 opened 6 years ago

Siddheshshah89 commented 6 years ago

Hello,

Can you please tell me token is right or not. How to check that...? When is enter wrong token in authorization section then its give me an error

My Input :-

True Token :-

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjIifQ.Ntdca3475YkDSWoiYM72FQhcJr3o8VZu6EMac-4JZZg

I entered token :- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjIifQ.Ntdca3475YkDSWoiYM72FQhcJr3o8VZu6EMac-4JZZgSomething

Error:-

Fatal error: Class 'Firebase\JWT\SignatureInvalidException' not found in C:\xampp_5.6\htdocs\rest-in-ci-master\application\libraries\JWT.php on line 109

Can you please tell me how to check eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjIifQ.Ntdca3475YkDSWoiYM72FQhcJr3o8VZu6EMac-4JZZgSomething is right or not..?

dhanifudin commented 6 years ago

Please pull to update and check again. I add some try catch to ensure token is valid. Let me know if there are some error again.