|
|
|
@ -82,8 +82,10 @@ public class BladeJwtTokenEnhancer implements TokenEnhancer {
|
|
|
|
|
|
|
|
|
|
if (jwtProperties.getSingle()) { |
|
|
|
|
OAuth2RefreshToken oAuth2RefreshToken = oAuth2AccessToken.getRefreshToken(); |
|
|
|
|
String refreshTokenValue = oAuth2RefreshToken.getValue(); |
|
|
|
|
JwtUtil.addRefreshToken(tenantId, clientId, userId, refreshTokenValue, accessToken.getExpiresIn() * 168); |
|
|
|
|
if(oAuth2RefreshToken!=null){ |
|
|
|
|
String refreshTokenValue = oAuth2RefreshToken.getValue(); |
|
|
|
|
JwtUtil.addRefreshToken(tenantId, clientId, userId, refreshTokenValue, accessToken.getExpiresIn() * 168); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|