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()
.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
.decode(cookie_secret)
.unwrap();
let key: Key = Key::from(&base64_value);
let oauth = oauth2::OauthClient::new(
http.clone(),
unwrap_env!("CLIENT_ID"),
unwrap_env!("CLIENT_SECRET"),
unwrap_env!("M42_CLIENT_ID"),
unwrap_env!("M42_CLIENT_SECRET"),
"https://fft.maix.me/manager/auth/callback",
)
.await