Update server/index.js
Browse files- 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: {
|
|
|
|
|
|
|
|
|
|
| 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 |
});
|