提交 7f9c12d5 编写于 作者: 智布道's avatar 智布道 👁

🔥 移除领英刷新token的接口。参考官网:To refresh an access token, go through the...

🔥 移除领英刷新token的接口。参考官网:To refresh an access token, go through the authorization process again to fetch a new token.
上级 fbeb4c68
......@@ -157,19 +157,6 @@ public class AuthLinkedinRequest extends AuthDefaultRequest {
return firstName;
}
@Override
public AuthResponse refresh(AuthToken oldToken) {
String refreshToken = oldToken.getRefreshToken();
if (StringUtils.isEmpty(refreshToken)) {
throw new AuthException(AuthResponseStatus.REQUIRED_REFRESH_TOKEN, source);
}
String refreshTokenUrl = refreshTokenUrl(refreshToken);
return AuthResponse.builder()
.code(AuthResponseStatus.SUCCESS.getCode())
.data(this.getToken(refreshTokenUrl))
.build();
}
/**
* 检查响应内容是否正确
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册