feat(auth): add ApiKeyServiceImpl — moves sha256 hashing out of presentation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user