Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29d18546a2
|
||
|
|
eda3112463
|
||
|
|
078f270e50
|
||
|
|
dd8bd3eff9
|
||
|
|
69cb67dbeb
|
||
|
|
c9d3f2914d
|
||
|
|
180780f46b
|
@@ -1,3 +1,2 @@
|
|||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod contact;
|
pub mod contact;
|
||||||
pub mod token;
|
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
|
||||||
pub struct Claims {
|
|
||||||
pub user_id: uuid::Uuid,
|
|
||||||
pub role: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
|
||||||
pub struct LoginResult {
|
|
||||||
pub user_id: uuid::Uuid,
|
|
||||||
pub access_token: String,
|
|
||||||
pub token_type: String,
|
|
||||||
pub expires_in: i64,
|
|
||||||
pub issued_at: i64,
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make alias for LoginResult for Login
|
|
||||||
|
|
||||||
// Alias for LoginResult
|
|
||||||
// Will be deprecated at some point
|
|
||||||
// type Login = LoginResult
|
|
||||||
type Login = LoginResult;
|
|
||||||
Reference in New Issue
Block a user