add profile

This commit is contained in:
Дмитриев Максим Сергеевич
2025-06-03 12:24:19 +03:00
parent 8031938b2f
commit c251a640b6
5 changed files with 65 additions and 29 deletions

View File

@@ -12,7 +12,14 @@ const getSupabaseKey = async () => {
return data.features['sber_mobile'].SUPABASE_KEY.value;
};
const getSupabaseServiceKey = async () => {
const response = await fetch('https://admin.bro-js.ru/api/config/v1/dev');
const data = await response.json();
return data.features['sber_mobile'].SUPABASE_SERVICE_KEY.value;
};
module.exports = {
getSupabaseUrl,
getSupabaseKey,
getSupabaseServiceKey
};