diff --git a/functions/useHttpsCallable.ts b/functions/useHttpsCallable.ts index 28b14f6..717c61c 100644 --- a/functions/useHttpsCallable.ts +++ b/functions/useHttpsCallable.ts @@ -2,6 +2,7 @@ import { Functions, httpsCallable, HttpsCallableResult, + HttpsCallableOptions } from 'firebase/functions'; import { useCallback, useState } from 'react'; @@ -27,11 +28,13 @@ export default ( const callCallable = useCallback( async ( - data?: RequestData + data?: RequestData, + options?: HttpsCallableOptions ): Promise | undefined> => { const callable = httpsCallable( functions, - name + name, + options ); setLoading(true); setError(undefined);