feat: refactor new

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-10-22 22:40:04 +02:00
parent 89acf8c343
commit ec3ed89d68
3 changed files with 4 additions and 10 deletions

View File

@@ -43,10 +43,7 @@ async fn main() -> anyhow::Result<()> {
"--session-postgres-conn=postgres://como:somenotverysecurepassword@localhost:5432/como",
]);
let auth = cmd.auth;
let session_service = SessionService::new(&auth).await?;
let auth_service = AuthService::new(&auth, session_service).await?;
let auth_service = AuthService::new(&cmd.auth).await?;
let state = AppState {
auth: auth_service.clone(),