We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rerun auth token
1 parent 2646096 commit 59a03b3Copy full SHA for 59a03b3
crates/utils/re_auth/src/cli.rs
@@ -63,6 +63,7 @@ struct NoCredentialsError;
63
#[error("Your credentials are expired, run `rerun auth login` first")]
64
struct ExpiredCredentialsError;
65
66
+/// Prints the token to stdout
67
pub async fn token(context: &AuthContext) -> Result<(), Error> {
68
let mut credentials = match workos::Credentials::load() {
69
Ok(Some(credentials)) => credentials,
@@ -88,9 +89,7 @@ pub async fn token(context: &AuthContext) -> Result<(), Error> {
88
89
unreachable!("bug: no access token after refresh");
90
};
91
- use std::io::Write as _;
92
- let mut stdout = std::io::stdout();
93
- write!(stdout, "{}", token.as_str()).ok();
+ println!("{}", token.as_str());
94
95
Ok(())
96
}
0 commit comments