refreshAuthToken method
刷新token
Implementation
Future<UserAccount> refreshAuthToken(String refreshToken) async {
final response = await _httpClient.post<String>('/auth/token', data: {
'client_id': _clientId,
'client_secret': _clientSecret,
'include_policy': true,
'grant_type': 'refresh_token',
'refresh_token': refreshToken,
});
return UserAccount.fromJson(jsonDecode(response.data!));
}