diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 3aee6c3..f57b0be 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,3 @@ -use base64::Engine; use kittybox::{database::Storage, indieauth::backend::AuthBackend, media::storage::MediaStore, webmentions::Webmention, compose_kittybox}; use tokio::{sync::Mutex, task::JoinSet}; use std::{env, future::IntoFuture, sync::Arc}; @@ -82,7 +81,7 @@ async fn main() { // TODO: load from environment let cookie_key = axum_extra::extract::cookie::Key::from(&env::var("COOKIE_KEY") .as_deref() - .map(|s| base64::prelude::BASE64_STANDARD.decode(s.as_bytes()) + .map(|s| data_encoding::BASE64_MIME_PERMISSIVE.decode(s.as_bytes()) .expect("Invalid cookie key: must be base64 encoded") ) .unwrap() |