renewCurrentAccessToken method

Future<void> renewCurrentAccessToken(
  1. String accessToken
)

Renews the current access token.

Implementation

Future<void> renewCurrentAccessToken(String accessToken) async {
  final updatedAccessToken = await _renewAccessToken(accessToken);
  await _setShopifyUser(
      updatedAccessToken, _shopifyUser[ShopifyConfig.storeUrl]);
}