Skip to content

Commit

Permalink
1.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Jun 22, 2024
1 parent 71a3814 commit edbd593
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public struct TokenRefresherMiddleware: HTTPClientMiddleware {
try await requestToken(configs)
}
} else {
throw Errors.custom("Token not found.")
throw TokenNotFound()
}

if
Expand Down Expand Up @@ -146,3 +146,8 @@ public struct TokenRefresherMiddleware: HTTPClientMiddleware {
}
}
}

public struct TokenNotFound: Error {

public init() {}
}

0 comments on commit edbd593

Please sign in to comment.