Added auth route (temp api key route)
This commit is contained in:
10
src/api/auth/bearer_token.rs
Normal file
10
src/api/auth/bearer_token.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct BearerTokenClaims {
|
||||
pub sub: String,
|
||||
pub name: String,
|
||||
pub iat: i64,
|
||||
pub exp: i64,
|
||||
pub jti: String,
|
||||
}
|
||||
Reference in New Issue
Block a user