add profile
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
const router = require('express').Router();
|
||||
const { createClient } = require('@supabase/supabase-js');
|
||||
const { getSupabaseUrl, getSupabaseKey } = require('./get-constants');
|
||||
const { getSupabaseUrl, getSupabaseKey, getSupabaseServiceKey } = require('./get-constants');
|
||||
|
||||
let supabase = null;
|
||||
|
||||
async function initSupabaseClient() {
|
||||
const supabaseUrl = await getSupabaseUrl();
|
||||
const supabaseAnonKey = await getSupabaseKey();
|
||||
supabase = createClient(supabaseUrl, supabaseAnonKey);
|
||||
const supabaseServiceRoleKey = await getSupabaseServiceKey();
|
||||
supabase = createClient(supabaseUrl, supabaseServiceRoleKey);
|
||||
}
|
||||
|
||||
function getSupabaseClient() {
|
||||
|
||||
Reference in New Issue
Block a user