sharktide commited on
Commit
93dc0c0
·
verified ·
1 Parent(s): 1b776d4

Update server/index.js

Browse files
Files changed (1) hide show
  1. server/index.js +4 -1
server/index.js CHANGED
@@ -178,7 +178,10 @@ async function verifyOnce(token, remoteIp) {
178
  try {
179
  const res = await fetch('https://dpixehhdbtzsbckfektd.supabase.co/functions/v1/challenges', {
180
  method: 'POST',
181
- headers: { 'content-type': 'application/x-www-form-urlencoded' },
 
 
 
182
  body: params,
183
  signal: controller.signal,
184
  });
 
178
  try {
179
  const res = await fetch('https://dpixehhdbtzsbckfektd.supabase.co/functions/v1/challenges', {
180
  method: 'POST',
181
+ headers: {
182
+ 'content-type': 'application/x-www-form-urlencoded',
183
+ Authorization: `Bearer ${process.env.SUPABASE_ANON_KEY}`
184
+ },
185
  body: params,
186
  signal: controller.signal,
187
  });