Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(errors): wrap errors from external authenticators to use new syst…
…em (#214) External authenticators may not use our error types. We previously assumed that errors coming from the `Authenticate` method would be either an `AuthenticationError` or `SDKProblem` and performed a type-cast that could cause a panic. This makes the type checking more explicit, and in the case of an unexpected error type, wraps the error in a new SDKProblem object and returns it to keep our error types consistent. Signed-off-by: Dustin Popp <dpopp07@gmail.com>
- Loading branch information