Module auth

Module auth 

Source
Expand description

Authentication module for WebSocket connections

This module provides JWT-based authentication for WebSocket connections. Authentication can be enabled/disabled via the REQUIRE_AUTH environment variable.

Structs§

Claims
JWT Claims structure

Functions§

authenticate_request
Authenticate WebSocket connection request
is_auth_required
Check if authentication is required based on environment variable
validate_token
Validate JWT token using JWKS file or JWT_SECRET