Update documentation

This commit is contained in:
Kiana Sheibani 2023-09-23 03:37:22 -04:00
parent dd4f0838ab
commit 5d0fbcd107
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
4 changed files with 55 additions and 5 deletions

View file

@ -17,7 +17,7 @@ pub fn get_auth_key(config_dir: &Path) -> Option<String> {
use std::env::{var, VarError};
use std::fs::read_to_string;
match var("AUTH_KEY") {
match var("AUTH_TOKEN") {
Ok(key) => Some(key),
Err(VarError::NotUnicode(_)) => panic!("Invalid authorization key"),
Err(VarError::NotPresent) => {