We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
URLError
RetryableError
1 parent 425a99f commit d67b7cfCopy full SHA for d67b7cf
Sources/Auth/Internal/SessionManager.swift
@@ -106,7 +106,9 @@ private actor LiveSessionManager {
106
// Need to do this check here, because not all RetryableError's should be retried.
107
// URLError conforms to RetryableError, but only a subset of URLError should be retried,
108
// the same is true for AuthError.
109
- if let error = error as? any RetryableError, error.shouldRetry {
+ if let error = error as? URLError, error.shouldRetry {
110
+ throw error
111
+ } else if let error = error as? any RetryableError, error.shouldRetry {
112
throw error
113
} else {
114
remove()
0 commit comments