<script>
import {authenticatedRequest} from "@/components/session/authenticatedRequest.vue";
import {handleEconomicError} from "@/components/request/HandleEconomicError.vue";
import { SessionUser } from "@/components/session/token/SessionUser.vue";

/**
 * The reCAPTCHA -> API Keys object
 */
export const API_keys = {
    get: async () => {
      return authenticatedRequest(
          "/reCAPTCHA/api_keys",
          "GET")
    },
    set: async (api_key) => {
      return SessionUser.superUser.modules.reCAPTCHA.config.API_keys.set(api_key);
    },
};

</script>