public static function overrideAuth(Auth $override): callable
    {
        return function (callable $handler) use ($override) {
            return function (RequestInterface $request, array $options = null) use ($handler, $override) {
                return $handler($override->authenticateRequest($request), $options ?? []);
            };
        };
    }
public static function overrideAuth(Auth $override): callable
    {
        return function (callable $handler) use ($override) {
            return function (RequestInterface $request, array $options = null) use ($handler, $override) {
                return $handler($override->authenticateRequest($request), $options ?? []);
            };
        };
    }
public static function overrideAuth ( Auth $ override ) : callable { return function ( callable $ handler ) use ( $ override ) { return function ( RequestInterface $ request , array $ options = null ) use ( $ handler , $ override ) { return $ handler ( $ override -> authenticateRequest ( $ request ) , $ options ?? [ ] ) ; } ; } ; }
Adds custom authentication to a request.

@param \Kreait\Firebase\Http\Auth $override

@return callable
Adds custom authentication to a request .