Skip to content

Commit bd31f9b

Browse files
add a new constant for middleware authentication (#637)
1 parent 0e9d88f commit bd31f9b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

atoma-utils/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ use tokio::sync::watch;
1616
use tracing::{error, instrument};
1717

1818
pub mod constants {
19+
/// HTTP header name for the user ID.
20+
/// Contains the user ID.
21+
pub const USER_ID: &str = "X-User-Id";
22+
1923
/// HTTP header name for the Stack Small ID.
2024
/// Used to identify specific stacks in the system.
2125
pub const STACK_SMALL_ID: &str = "X-Stack-Small-Id";

0 commit comments

Comments
 (0)