pub async fn auth_middleware( __arg0: State<Arc<SaasAuthLayer>>, request: Request, next: Next, ) -> Result<Response, AuthError>
Authentication middleware function.