mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* migrate to v2 API URLs for CSV exports * don't ask user to solve recaptcha for first response; pass token in header as well * hide "Try again" button if no bypass allowed * fix tests
13 lines
280 B
JavaScript
13 lines
280 B
JavaScript
const useReCaptcha = () => {
|
|
return {
|
|
ref: { current: null },
|
|
executeAsync: () => Promise.resolve('recaptcha_token'),
|
|
fetchProtectedResource: async(fetcher) => {
|
|
const result = await fetcher();
|
|
return result;
|
|
},
|
|
};
|
|
};
|
|
|
|
export default useReCaptcha;
|