From c1f125e1175f407706d627cbfcda84badeb8c1a8 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 00:45:56 +0000 Subject: [PATCH] completionId: cgen-128fee8e09464d8893423b86fd902b26 cgen-128fee8e09464d8893423b86fd902b26 --- api/user/profile-update.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/user/profile-update.ts b/api/user/profile-update.ts index 839babce..08726e4d 100644 --- a/api/user/profile-update.ts +++ b/api/user/profile-update.ts @@ -1,4 +1,4 @@ -import { supabase } from "../_supabase"; +import { getAdminClient } from "../_supabase"; export default async (req: Request) => { if (req.method !== "PUT" && req.method !== "POST") { @@ -12,6 +12,7 @@ export default async (req: Request) => { } const token = authHeader.slice(7); + const supabase = getAdminClient(); const { data: userData } = await supabase.auth.getUser(token); if (!userData.user) {