How about some documentation?
I feel this library could use some documentation, especially some mention that if the token verification fails, an exception will be thrown. Also an example of code where a try catch block is used to decode a token would help.
Thanks!
+1
:+1: Great library by the way, very helpful in my latest project
I generally agree but if anyone really does need some examples the tests aren't a bad place to start: https://github.com/firebase/php-jwt/blob/master/tests/JWTTest.php
There's plenty of documentation on how to catch an exception already out there, and the source code is relatively easy to look at and understand what exceptions are thrown.
+1
+5
+10
+1
+1 https://medium.com/@craftsmancoding/wtfm-dbbec02eb172#.nqpu6uivi
I see exception handling example is added to the readme itself and the issue is really old. Closing this issue. Thank you for the discussion.