summaryrefslogtreecommitdiffstats
path: root/adenosine-cli
diff options
context:
space:
mode:
Diffstat (limited to 'adenosine-cli')
-rw-r--r--adenosine-cli/src/bin/adenosine.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/adenosine-cli/src/bin/adenosine.rs b/adenosine-cli/src/bin/adenosine.rs
index 724f412..4c21170 100644
--- a/adenosine-cli/src/bin/adenosine.rs
+++ b/adenosine-cli/src/bin/adenosine.rs
@@ -86,6 +86,8 @@ enum AccountCommand {
#[structopt(long, short)]
password: String,
},
+ /// Refreshes JWT token
+ Refresh,
/// Deletes the current login session
Logout,
/// Fetches account metadata for the current session
@@ -462,6 +464,9 @@ fn run(opt: Opt) -> Result<()> {
})),
)?,
Command::Account {
+ cmd: AccountCommand::Refresh,
+ } => xrpc_client.post(&Nsid::from_str("com.atproto.session.refresh")?, None, None)?,
+ Command::Account {
cmd: AccountCommand::Logout,
} => xrpc_client.post(&Nsid::from_str("com.atproto.session.delete")?, None, None)?,
Command::Account {