strapi-plugin-firebase-authentication
Version:
Allows easy integration between clients utilizing Firebase for authentication and Strapi
26 lines (25 loc) • 792 B
JavaScript
import { getFetchClient } from "@strapi/strapi/admin";
import { P as PLUGIN_ID } from "./index-CALp4X47.mjs";
const saveFirebaseConfig = async (json) => {
const url = `/${PLUGIN_ID}/settings/firebase-config`;
const { post } = getFetchClient();
const { data } = await post(url, { firebaseConfigJson: json });
return data;
};
const getFirebaseConfig = async () => {
const url = `/${PLUGIN_ID}/settings/firebase-config`;
const { get } = getFetchClient();
const { data } = await get(url);
return data;
};
const delFirebaseConfig = async () => {
const url = `/${PLUGIN_ID}/settings/firebase-config`;
const { del } = getFetchClient();
const { data } = await del(url);
return data;
};
export {
delFirebaseConfig as d,
getFirebaseConfig as g,
saveFirebaseConfig as s
};