throw exception when failed to refresh token (#12431)

This commit is contained in:
William Cheng
2022-05-24 14:51:39 +08:00
committed by GitHub
parent 4d544994fd
commit de8decc9f5
4 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ public class OAuth implements Authentication {
return service.refreshAccessToken(refreshToken);
}
} catch (OAuthException | InterruptedException | ExecutionException | IOException e) {
log.log(Level.FINE, "Refreshing the access token using the refresh token failed", e);
throw new ApiException("Refreshing the access token using the refresh token failed: " + e.toString());
}
try {
switch (flow) {