Unable to distinguish between different types of errors from IdTokenVerifier.verify
tparonen opened this issue · 1 comments
IdTokenVerifier throws TokenValidationError whenever the ID token fails to validate.
Currently it's not easy for the application to tell why the validation failed. Instead of parsing the error messages it should be possible to identify different errors by ID for example. This would let the application know whether given error is recoverable, so it may attempt to renew the session.
Environment
- Version of this library used: 2.0.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️