1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Can get WebSocket access token

This commit is contained in:
2021-02-05 10:37:37 +01:00
parent 62a73b25d3
commit 82b845c603
8 changed files with 129 additions and 4 deletions

View File

@@ -57,6 +57,12 @@ pub mod database_tables_names {
pub const NOTIFICATIONS_TABLE: &str = "comunic_notifications";
}
/// WebSocket access token lifetime, in seconds
pub const WS_ACCESS_TOKEN_LIFETIME: u64 = 10;
/// WebSocket access token length
pub const WS_ACCESS_TOKEN_LENGTH: usize = 10;
/// Lifetime of limit counter (1 hour)
pub const LIMIT_COUNTER_LIFETIME: u64 = 60 * 60;