exception handling fix
This commit is contained in:
parent
98d82d2cae
commit
311fca5a72
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ public class TokenManager {
|
||||||
throw new OAuthErrorException(OAuthErrorException.INVALID_GRANT, "Invalid refresh token");
|
throw new OAuthErrorException(OAuthErrorException.INVALID_GRANT, "Invalid refresh token");
|
||||||
}
|
}
|
||||||
refreshToken = jws.readJsonContent(RefreshToken.class);
|
refreshToken = jws.readJsonContent(RefreshToken.class);
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
throw new OAuthErrorException(OAuthErrorException.INVALID_GRANT, "Invalid refresh token", e);
|
throw new OAuthErrorException(OAuthErrorException.INVALID_GRANT, "Invalid refresh token", e);
|
||||||
}
|
}
|
||||||
if (refreshToken.isExpired()) {
|
if (refreshToken.isExpired()) {
|
||||||
|
|
Loading…
Reference in a new issue