code: func (service *Service) Check2FASMSConfirmation(w http.ResponseWriter, request *http.Request) {
  
  	sessionInfo, err := service.getLoginSessionInformation(request, "")
  	if err != nil {
  		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
  		return
  	}
  	response := map[string]bool{}
  	if sessionInfo == nil {
  		response["confirmed"] = false
  	} else {
  		response["confirmed"] = sessionInfo.Confirmed
  	}
  	w.Header().Set("Content-Type", "application/json")
  	json.NewEncoder(w).Encode(response)
  
  }
docs: //Check2FASMSConfirmation is called by the sms code form to check if the sms is already confirmed on the mobile phone