update: changed env names

This commit is contained in:
maix0 2025-01-15 23:26:17 +01:00
parent a03c4436da
commit 3b3f8c243e

View file

@ -79,15 +79,15 @@ async fn main() {
.build() .build()
.expect("Client should build"); .expect("Client should build");
let cookie_secret = unwrap_env!("COOKIE_SECRET"); let cookie_secret = unwrap_env!("M42_COOKIE_SECRET");
let base64_value = base64::engine::general_purpose::URL_SAFE let base64_value = base64::engine::general_purpose::URL_SAFE
.decode(cookie_secret) .decode(cookie_secret)
.unwrap(); .unwrap();
let key: Key = Key::from(&base64_value); let key: Key = Key::from(&base64_value);
let oauth = oauth2::OauthClient::new( let oauth = oauth2::OauthClient::new(
http.clone(), http.clone(),
unwrap_env!("CLIENT_ID"), unwrap_env!("M42_CLIENT_ID"),
unwrap_env!("CLIENT_SECRET"), unwrap_env!("M42_CLIENT_SECRET"),
"https://fft.maix.me/manager/auth/callback", "https://fft.maix.me/manager/auth/callback",
) )
.await .await