pub fn write_token(working_dir: &Path, token: &AuthToken) -> Result<()>Expand description
Write the token to <working_dir>/.dora-token and to the user config
directory (e.g. ~/.config/dora/.dora-token).
On Unix, each file is written to a fresh 0o600 inode that replaces the
old one, so the secret is never readable by other users.