Skip to content

Commit

Permalink
fix: guard jwt error behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mccormickt committed Nov 26, 2024
1 parent 84b712b commit 8dc4dba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub enum ModelError {
#[error("{errors:?}")]
ModelValidation { errors: ModelValidation },

#[cfg(feature = "auth_jwt")]
#[error("jwt error")]
Jwt(#[from] jsonwebtoken::errors::Error),

Expand Down

0 comments on commit 8dc4dba

Please sign in to comment.