forked from loafle/openapi-generator-original
throw exception when failed to refresh token (#12431)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user