Skip to content

Commit

Permalink
fix: feature lock entities/mfa_token
Browse files Browse the repository at this point in the history
Locks entities/mfa_token.rs to the client feature.

This representation is purely client sided, for a server sided
mfa token, you'd likely only store the expiration timestamp and
give the JWT to be handled by the client.
  • Loading branch information
kozabrada123 committed Oct 2, 2024
1 parent 1927ed8 commit 825e0ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/types/entities/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub use user::*;
pub use user_settings::*;
pub use voice_state::*;
pub use webhook::*;

#[cfg(feature = "client")]
pub use mfa_token::*;

use crate::types::Shared;
Expand Down Expand Up @@ -72,6 +74,12 @@ mod user;
mod user_settings;
mod voice_state;
mod webhook;

// Note: this is a purely client side version of the mfa token.
//
// For the server, you'd likely only store when it expires somewhere,
// and give the JWT to the client to store
#[cfg(feature = "client")]
mod mfa_token;

#[cfg(feature = "client")]
Expand Down

0 comments on commit 825e0ed

Please sign in to comment.