feature/add supabase auth

This commit is contained in:
Max
2025-05-18 21:58:54 +03:00
parent 8a1868482c
commit f89729dbeb
6 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
const fetch = require('node-fetch');
const getSupabaseUrl = 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_URL.value;
};
const getSupabaseKey = 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_KEY.value;
};
module.exports = {
getSupabaseUrl,
getSupabaseKey,
};