From 0e170f77bae6851602b0c946708c97cfcb4ac3cf Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 19 Dec 2022 20:03:30 -0800 Subject: cli: add auth refresh command --- adenosine-cli/src/bin/adenosine.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'adenosine-cli/src') 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 @@ -461,6 +463,9 @@ fn run(opt: Opt) -> Result<()> { "password": password, })), )?, + 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)?, -- cgit v1.2.3