This commit is contained in:
cirroskais 2024-03-18 15:22:22 -04:00
parent 23db1d5c88
commit 2cdb406e1c
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D
2 changed files with 22 additions and 2 deletions

View file

@ -4,7 +4,7 @@
let output = "";
async function main() {
const auth = await authorize();
const auth = await authorize().catch((e) => e);
output = output + `auth: ${JSON.stringify(auth)}\n`;
if (!auth) return (output += `failed to authenticate :'c`);

View file

@ -11,7 +11,27 @@ export async function authorize() {
response_type: "code",
state: "",
prompt: "none",
scope: ["identify", "rpc.activities.write"],
scope: [
// "applications.builds.upload",
// "applications.builds.read",
// "applications.store.update",
// "applications.entitlements",
// "bot",
"identify",
// "connections",
// "email",
// "gdm.join",
"guilds",
// "guilds.join",
// "guilds.members.read",
// "messages.read",
// "relationships.read",
"rpc.activities.write",
// "rpc.notifications.read",
// "rpc.voice.write",
"rpc.voice.read",
// "webhook.incoming",
],
});
const response = await fetch("/api/token", {