about summary refs log tree commit diff
path: root/kittybox-rs/indieauth/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs/indieauth/src/lib.rs')
-rw-r--r--kittybox-rs/indieauth/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/kittybox-rs/indieauth/src/lib.rs b/kittybox-rs/indieauth/src/lib.rs
index 9408eb6..eca1102 100644
--- a/kittybox-rs/indieauth/src/lib.rs
+++ b/kittybox-rs/indieauth/src/lib.rs
@@ -145,7 +145,7 @@ pub enum GrantResponse {
         profile: Option<Profile>,
         access_token: String,
         #[serde(skip_serializing_if = "Option::is_none")]
-        expires_in: Option<usize>,
+        expires_in: Option<u64>,
         #[serde(skip_serializing_if = "Option::is_none")]
         refresh_token: Option<String>
     },
@@ -257,6 +257,8 @@ pub struct TokenRevocationRequest {
     pub token: String
 }
 
+// TODO rework in accordance with https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
+// turns out I got some values wrong
 #[derive(Debug, Clone, Copy, Serialize, Deserialize)]
 #[serde(rename_all = "snake_case")]
 #[serde(tag = "error")]