feat(auth): add ApiKeyServiceImpl — moves sha256 hashing out of presentation

This commit is contained in:
2026-05-16 11:03:07 +02:00
parent d3223923e4
commit 0222a168db
3 changed files with 95 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
mod api_key_service;
use async_trait::async_trait;
use chrono::{Duration, Utc};
use domain::{
@@ -8,6 +10,8 @@ use domain::{
use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation};
use serde::{Deserialize, Serialize};
pub use api_key_service::ApiKeyServiceImpl;
#[derive(Serialize, Deserialize)]
struct Claims {
sub: String,