fix(core,cli): end the session on Proton when signing out

Logout only deleted the keyring entry, so the session's tokens stayed
valid on Proton's side. It now ends the session first (DELETE auth/v4,
bounded to 10 s) and signs out locally either way. `pdfs logout` says
when Proton could not be reached (B233).
This commit is contained in:
nvrl committed 2026-10-16 11:26:29 +02:00
1 parent ef0f046939
commit 518763c5c9
5 files changed
+88 -7

No files matched your search

+1 -1
View File
@@ -602,7 +602,7 @@ pub(crate) fn sign_out(ui: &Rc<Ui>) {
glib::spawn_future_local(async move {
let result = gio::spawn_blocking(|| {
service::disable_stop();
auth::logout().map_err(|e| e.to_string())
auth::logout().map(|_| ()).map_err(|e| e.to_string())
})
.await;
if let Ok(Err(e)) = result {