Got log in and out working, moved global state
All checks were successful
Build Crate / build (push) Successful in 1m45s
All checks were successful
Build Crate / build (push) Successful in 1m45s
close to done!
This commit is contained in:
@@ -21,3 +21,13 @@ pub struct Claims {
|
||||
pub sub: String,
|
||||
pub exp: usize,
|
||||
}
|
||||
|
||||
// For client local storage and session storage
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct WebAuthInfo {
|
||||
pub token: String,
|
||||
#[serde(with = "ts_seconds")]
|
||||
pub expires: DateTime<Utc>,
|
||||
pub username: String,
|
||||
pub remember_me: bool,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user