updateUserLogin method

  1. @override
Future<void> updateUserLogin(
  1. UserLogin? login
)
override

Updates MyUser.login field for the authenticated MyUser.

Implementation

@override
Future<void> updateUserLogin(UserLogin? login) async {
  Log.debug('updateUserLogin($login)', '$runtimeType');

  // Don't do optimism, as [login] might be occupied, thus shouldn't set the
  // login right away.
  await Backoff.run(
    () async {
      await _graphQlProvider.updateUserLogin(login);
    },
    retryIf: (e) => e.isNetworkRelated,
    retries: 10,
  );
}