From 8baf0576e8aa3470a74dbfdb394e8ef157721d5e Mon Sep 17 00:00:00 2001 From: Artemy Date: Tue, 26 Jul 2022 20:29:27 +0300 Subject: [PATCH] feat: Jwt expiration (OS-3) --- src/types.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/types.rs b/src/types.rs index 7b06b1d..98cfd40 100644 --- a/src/types.rs +++ b/src/types.rs @@ -15,3 +15,8 @@ pub struct User { pub password: String, pub email: String, } +pub struct JwtInfo { + pub name: String, + pub role: String, + pub exp: i64, +}