From 320de85d04061ccc3ce50fb9a460a28068f7146a Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 30 Jan 2025 08:42:36 +0300 Subject: Token revocation on sign out It just makes sense, right? Warning, untested, because I don't want to burn my tokens. --- src/micropub.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/micropub.rs') diff --git a/src/micropub.rs b/src/micropub.rs index 04fa893..b2f1e73 100644 --- a/src/micropub.rs +++ b/src/micropub.rs @@ -3,6 +3,7 @@ pub use kittybox_util::micropub::{Error as MicropubError, Config, QueryType}; #[derive(Debug)] pub struct Client { + pub me: String, micropub: String, pub access_token: String, @@ -22,11 +23,11 @@ pub enum Error { } impl Client { - pub fn new(http: soup::Session, uri: glib::Uri, token: String) -> Self { + pub fn new(http: soup::Session, uri: glib::Uri, token: String, me: String) -> Self { Self { micropub: uri.to_string(), access_token: token, - + me, http, } } -- cgit 1.4.1