diff --git a/src/store.rs b/src/store.rs index 8bc0bf5..6e2045d 100644 --- a/src/store.rs +++ b/src/store.rs @@ -6,7 +6,7 @@ use sqlx::{types::Uuid, Connection, PgPool, Postgres, Transaction}; use tracing::error; use crate::web::login::{ - LoginSession, LOGIN_SESSION_CSRF_SECRET_BYTES, LOGIN_SESSION_TOKEN_BYTES, + LoginSession, LOGIN_SESSION_CSRF_SECRET_BYTES, LOGIN_SESSION_TOKEN_HASH_BYTES, }; diff --git a/src/web/oauth_openid/authorisation.rs b/src/web/oauth_openid/authorisation.rs index 41ffdbf..f461e91 100644 --- a/src/web/oauth_openid/authorisation.rs +++ b/src/web/oauth_openid/authorisation.rs @@ -7,10 +7,10 @@ use axum::{ Extension, Form, }; use axum_csrf::CsrfToken; -use base64::{prelude::BASE64_URL_SAFE_NO_PAD, Engine}; + use eyre::{Context, ContextCompat}; -use rand::Rng; + use serde::{Deserialize, Serialize}; use tracing::{error, info}; diff --git a/src/web/oauth_openid/ext_codes.rs b/src/web/oauth_openid/ext_codes.rs index fef4ddd..3c12d26 100644 --- a/src/web/oauth_openid/ext_codes.rs +++ b/src/web/oauth_openid/ext_codes.rs @@ -3,7 +3,7 @@ use std::{ fmt::Display, str::FromStr, sync::{Arc, Mutex}, - time::{Duration, Instant, SystemTime, UNIX_EPOCH}, + time::{Duration, SystemTime, UNIX_EPOCH}, }; use base64::{display::Base64Display, prelude::BASE64_URL_SAFE_NO_PAD, Engine};