summary refs log tree commit diff
path: root/src/micropub.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2025-01-30 08:42:36 +0300
committerVika <vika@fireburn.ru>2025-01-30 08:42:36 +0300
commit320de85d04061ccc3ce50fb9a460a28068f7146a (patch)
tree72e6d5b5b18f6d409765ec0dc96fab65235ff4a9 /src/micropub.rs
parent028958dde5ed7cd8aad7ee408fbc24636175ba21 (diff)
downloadbowl-320de85d04061ccc3ce50fb9a460a28068f7146a.tar.zst
Token revocation on sign out
It just makes sense, right?

Warning, untested, because I don't want to burn my tokens.
Diffstat (limited to 'src/micropub.rs')
-rw-r--r--src/micropub.rs5
1 files changed, 3 insertions, 2 deletions
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,
         }
     }