You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for putting together this package. I've been using this in a YouTube series at the moment.
I've got an issue related to the JWT.verify() static method in /lib/src/jwt.dart. A generic error object is thrown on line 135:
throwJWTInvalidError('invalid token');
instead of the specific error types like JWTExpiredError on line 66 and JWTNotActiveError() on line 76. Ideally line 135 should throw the specific error object:
throw ex;
What do you think?
The text was updated successfully, but these errors were encountered:
Hello Jonas,
First of all, thanks for putting together this package. I've been using this in a YouTube series at the moment.
I've got an issue related to the
JWT.verify()
static method in/lib/src/jwt.dart
. A generic error object is thrown on line 135:instead of the specific error types like
JWTExpiredError
on line 66 andJWTNotActiveError()
on line 76. Ideally line 135 should throw the specific error object:throw ex;
What do you think?
The text was updated successfully, but these errors were encountered: