perf(struct): ddd

This commit is contained in:
2026-02-03 17:31:08 +08:00
parent 202b5eaad5
commit 4a071bd7c8
64 changed files with 1214 additions and 1189 deletions

View File

@@ -1,6 +1,6 @@
use hmac::{Hmac, Mac};
use iam_service::application::services::{AuthService, TenantService};
use iam_service::models::{CreateTenantRequest, CreateUserRequest, LoginRequest};
use iam_service::services::{AuthService, TenantService};
use sha2::Sha256;
use sqlx::PgPool;
use uuid::Uuid;
@@ -12,8 +12,7 @@ fn fingerprint(pepper: &str, token: &str) -> String {
}
#[tokio::test]
async fn refresh_token_rotate_and_expire_cases()
-> Result<(), Box<dyn std::error::Error>> {
async fn refresh_token_rotate_and_expire_cases() -> Result<(), Box<dyn std::error::Error>> {
let database_url = match std::env::var("DATABASE_URL") {
Ok(v) if !v.trim().is_empty() => v,
_ => return Ok(()),
@@ -104,4 +103,3 @@ async fn refresh_token_rotate_and_expire_cases()
Ok(())
}