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()
|
.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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue