login_handler

Function login_handler 

Source
pub async fn login_handler(
    __arg0: State<GatewayState>,
    __arg1: Json<LoginRequest>,
) -> Result<Json<LoginResponse>, AuthHandlerError>
Expand description

Login endpoint

Authenticates user with username and password, returns JWT token.

POST /api/v0/auth/login