getUserId method

Future<String?> getUserId()

Returns the userId from the cache.

Implementation

Future<String?> getUserId() async {
  final sharedPreferences = await SharedPreferences.getInstance();
  return sharedPreferences.getString(_AppFitCacheKey.userId.name);
}