Skip to content

Commit e4d33ef

Browse files
committed
:c
1 parent ccec80a commit e4d33ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

supabase/functions/inituser/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { corsHeaders } from "../_shared/cors.ts";
44

55
Deno.serve(async (req) => {
66
const supabase = createClient(
7-
Deno.env.get('SUPABASE_URL') ?? '',
8-
Deno.env.get('SUPABASE_ANON_KEY') ?? '',
7+
Deno.env.get('SUPABASE_URL'),
8+
Deno.env.get('SUPABASE_ANON_KEY'),
99
);
1010

1111
const headers = { ...corsHeaders };
@@ -68,7 +68,7 @@ Deno.serve(async (req) => {
6868
.single();
6969

7070
if (userExistsError || !userExists) {
71-
return new Response(JSON.stringify({ error:`User ${uid} does not exist in the 'users' table. Data: ${userExists} with errors ${JSON.stringify(userExistsError)}`}), {
71+
return new Response(JSON.stringify({ error: `User ${uid} does not exist in the 'users' table. Data: ${userExists} with errors ${JSON.stringify(userExistsError)}\nOther data: ${req.headers.get("authorization") }`}), {
7272
status: 400,
7373
headers: {
7474
...headers

0 commit comments

Comments
 (0)