Skip to content

Commit

Permalink
[identity] Bump NONCE_TTL_DURATION to 15min
Browse files Browse the repository at this point in the history
Summary: This addresses [ENG=9483](https://linear.app/comm/issue/ENG-9483/increase-siwe-nonce-lifetime).

Test Plan: Unit tests and CI... I think it's safe, I'm just changing a constant

Reviewers: bartek, varun, will

Reviewed By: bartek

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13584
  • Loading branch information
Ashoat committed Oct 3, 2024
1 parent 1500e71 commit bc33b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/identity/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub const KEYSERVER_PUBLIC_KEY: &str = "KEYSERVER_PUBLIC_KEY";
// Nonce

pub const NONCE_LENGTH: usize = 17;
pub const NONCE_TTL_DURATION: Duration = Duration::from_secs(120); // seconds
pub const NONCE_TTL_DURATION: Duration = Duration::from_secs(900); // seconds

// Device list

Expand Down

0 comments on commit bc33b61

Please sign in to comment.