completionId: cgen-128fee8e09464d8893423b86fd902b26

cgen-128fee8e09464d8893423b86fd902b26
This commit is contained in:
Builder.io 2025-11-16 00:45:56 +00:00
parent fd99f2756e
commit c1f125e117

View file

@ -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) {