getRefreshTokenPostData method

Future<Map<String, String?>> getRefreshTokenPostData(
  1. Account account
)

Implementation

Future<Map<String, String?>> getRefreshTokenPostData(Account account) async {
  var oaccount = account as OAuthAccount?;
  if (oaccount == null) throw new Exception("Invalid Account");
  return {
    "grant_type": "refresh_token",
    "refresh_token": oaccount.refreshToken,
    "client_id": clientId,
    "client_secret": clientSecret,
  };
}