-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from Rajdip019/rajdeep/session
changed form is_active to is_revoked
- Loading branch information
Showing
5 changed files
with
44 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
use bson::DateTime; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Deserialize, Debug, Clone, Serialize)] | ||
pub struct VerifyJwt { | ||
pub struct VerifySession { | ||
pub token: String, | ||
} | ||
|
||
#[derive(Deserialize, Debug, Clone, Serialize)] | ||
pub struct SessionResponse { | ||
pub uid : String, | ||
pub email : String, | ||
pub user_agent : String, | ||
pub is_revoked : bool, | ||
pub created_at : DateTime, | ||
pub updated_at : DateTime, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters