From acabf438edc420b5565319c248c4aefd8cba5af2 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Fri, 15 Apr 2022 20:16:02 +0200 Subject: [PATCH] Reduce access tokens length --- src/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.rs b/src/constants.rs index 5882a50..563c983 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -53,7 +53,7 @@ pub const OPEN_ID_SESSION_CLEANUP_INTERVAL: Duration = Duration::from_secs(60); pub const OPEN_ID_SESSION_LEN: usize = 40; pub const OPEN_ID_AUTHORIZATION_CODE_LEN: usize = 120; pub const OPEN_ID_AUTHORIZATION_CODE_TIMEOUT: u64 = 300; -pub const OPEN_ID_ACCESS_TOKEN_LEN: usize = 120; +pub const OPEN_ID_ACCESS_TOKEN_LEN: usize = 50; pub const OPEN_ID_ACCESS_TOKEN_TIMEOUT: u64 = 3600; pub const OPEN_ID_REFRESH_TOKEN_LEN: usize = 120; pub const OPEN_ID_REFRESH_TOKEN_TIMEOUT: u64 = 360000; \ No newline at end of file