Function: eca-providers--logout-at-point

eca-providers--logout-at-point is an interactive and natively compiled function defined in eca-providers.el.

Signature

(eca-providers--logout-at-point)

Documentation

Logout from the provider at point.

Key Bindings

eca-providers-mode-map d

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-providers.el
(defun eca-providers--logout-at-point ()
  "Logout from the provider at point."
  (interactive)
  (if-let* ((session (ignore-errors (eca-session)))
            (provider-id (eca-providers--provider-id-at-point)))
      (when (y-or-n-p (format "Logout from %s? " provider-id))
        (eca-api-request-async session
          :method "providers/logout"
          :params (list :provider provider-id)
          :success-callback (lambda (_) (eca-info "Logged out of %s" provider-id))
          :error-callback (lambda (err) (eca-warn "Logout failed: %s" err))))
    (user-error "No provider at point")))