getRefreshToken static method

Future<String> getRefreshToken()

Implementation

static Future<String> getRefreshToken() async {
  if (_refreshToken != "") {
    return _refreshToken;
  }
  try {
    String? refreshToken = await _secureStorage.read(key: _refreshTokenKey);
    if (refreshToken != null && refreshToken != "") {
      _refreshToken = refreshToken;
      return refreshToken;
    }
  } catch (e) {
    if (kDebugMode) {
      print(e.toString());
    }
  }
  return "";
}