mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2026-01-07 19:31:48 +08:00
🔥 移除领英刷新token的接口。参考官网:To refresh an access token, go through the authorization process again to fetch a new token.
This commit is contained in:
parent
fbeb4c68ab
commit
7f9c12d5bf
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查响应内容是否正确
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user