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
fix(core): keep the cause of a load or verification failure
The loaders, the verifier, the decrypter and the serializer managers all
swallowed the exception explaining why a token could not be used, and the
caller was left with a bare "Unable to load and verify the token." with no
previous exception.
The last error met along the way is now chained as the previous exception. The
per-key failures of JWSVerifier and JWEDecrypter, which cannot throw without
changing the return semantics, are reported through a callable accepted as an
additional argument; it will become part of the signature in 5.0.0.
Closes#681
0 commit comments