Write code to get auth key

This commit is contained in:
Kiana Sheibani 2023-08-26 23:47:23 -04:00
parent 1e5bdd9e8c
commit 5fdc8cb50e
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1,3 +1,9 @@
fn main() { use std::env;
println!("Hello, world!");
fn get_auth_key() -> Option<String> {
env::var("AUTH_KEY").ok()
}
fn main() {
let _auth_key = get_auth_key().expect("Could not find authorization key");
} }