Use opaque type for auth token
So we cannot accidentially output it, as it does not implement `Display`.
This commit is contained in:
@@ -7,7 +7,6 @@ impl AuthToken {
|
||||
pub fn access(&self) -> &str {
|
||||
&self.0
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
pub fn get_token_from_command(command: &str) -> Result<AuthToken, String> {
|
||||
|
||||
Reference in New Issue
Block a user