feature/add supabase auth
This commit is contained in:
18
server/routers/kfu-m-24-1/sber_mobile/get-constants.js
Normal file
18
server/routers/kfu-m-24-1/sber_mobile/get-constants.js
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user