unAuthenticateVisitor method

  1. @override
dynamic unAuthenticateVisitor()
override

Implementation

@override
unAuthenticateVisitor() {
  if (visitor.config.decisionMode == Mode.DECISION_API) {
    if (visitor.anonymousId != null) {
      visitor.visitorId = visitor.anonymousId as String;
      visitor.anonymousId = null;
      // Update fs_users in context
      visitor.updateContext(FS_USERS, visitor.visitorId);
    }
    DataUsageTracking.sharedInstance().processTSXpc(
        CriticalPoints.VISITOR_UNAUTHENTICATE.name, this.visitor);
  } else {
    Flagship.logger(Level.ALL,
        "unAuthenticateVisitor method will be ignored in Bucketing configuration");
  }
  // Update the xpc info for the emotionAI
  this
      .visitor
      .emotion_ai
      ?.updateTupleId(this.visitor.visitorId, this.visitor.anonymousId);
}