update: changed env names
This commit is contained in:
parent
a03c4436da
commit
3b3f8c243e
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue