feat: Jwt expiration (OS-3)

This commit is contained in:
Artemy 2022-07-26 20:29:27 +03:00
parent c1124f0941
commit 8baf0576e8

View file

@ -15,3 +15,8 @@ pub struct User {
pub password: String, pub password: String,
pub email: String, pub email: String,
} }
pub struct JwtInfo {
pub name: String,
pub role: String,
pub exp: i64,
}