t) {
            this.updateTenantInSession(tenant)
            toast("Switching tenant... One moment.")

          },
          updateTenantInSession: function(tenant) {
            request("PUT",
              `/api/v1/session/${tenant.id}`,
              data => {
                console.log("Updated tenant in session")
                this.setTenant(tenant.id)
                setTimeout(() => {
                    window.location.href = "/";
                }, 1500);
              },
              error