updateAuthInfo method

Future<void> updateAuthInfo(
  1. String userId,
  2. String fieldName,
  3. dynamic value
)

Implementation

Future<void> updateAuthInfo(
  String userId,
  String fieldName,
  dynamic value,
) async {
  var authUpdates = dbService.mongoDbController
      .collection(app.authSettings.authUpdatesCollName);
  await authUpdates.doc(userId).update({
    fieldName: value,
  });
}