Added initial authorization layer.

This commit is contained in:
2026-10-09 17:22:46 +02:00
parent 7fb3abc93d
commit 1f6de34e5b
16 changed files with 184 additions and 64 deletions
+2
View File
@@ -3,6 +3,8 @@ use uuid::Uuid;
pub struct TokenRow {
pub id: Uuid,
pub user_id: Uuid,
pub user_app_id: Option<Uuid>,
pub access_token_hash: Vec<u8>,
pub refresh_token_hash: Vec<u8>,
pub access_expires_at: DateTime<Utc>,