completionId: cgen-128fee8e09464d8893423b86fd902b26
cgen-128fee8e09464d8893423b86fd902b26
This commit is contained in:
parent
fd99f2756e
commit
c1f125e117
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue