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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user