This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const headers = { | |
Authorization: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNjZlNDJiODg0YzIxYTcxZWI5Njg5ZjhiIiwiaWF0IjoxNzI3NjM3ODQ2LCJleHAiOjE3Mjc3MjQyNDYsInR5cGUiOiJhY2Nlc3MifQ.-bi6Tv2yeabyr4esHJa0VxV_cFqcHVXxcgFWOv4pb2w", // replace your token here | |
} | |
async function delay(ms) { | |
return new Promise((reslove) => setTimeout(() => reslove(true), ms)) | |
} | |
async function getMissions() { | |
const res = await fetch("https://api-mission.goatsbot.xyz/missions/user", { |