Got log in and out working, moved global state
All checks were successful
Build Crate / build (push) Successful in 1m45s

close to done!
This commit is contained in:
2024-08-26 17:43:08 -04:00
parent 0f20ba3b86
commit 65d47615da
11 changed files with 172 additions and 95 deletions

View File

@@ -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,
}