pub async fn require_authenticated(
req: Request<Body>,
next: Next,
) -> Result<Response, (StatusCode, Json<ApiResponse<Empty>>)>
Expand description
Basic guard to ensure the request is authenticated.
pub async fn require_authenticated(
req: Request<Body>,
next: Next,
) -> Result<Response, (StatusCode, Json<ApiResponse<Empty>>)>
Basic guard to ensure the request is authenticated.