aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/reviewDB/utils.tsx
diff options
context:
space:
mode:
authorManti <67705577+mantikafasi@users.noreply.github.com>2023-06-03 23:07:04 +0300
committerGitHub <noreply@github.com>2023-06-03 20:07:04 +0000
commit263fbc377eb6444d97f21642fe5be41e30f0a3e4 (patch)
tree9b1e7dbe8ae011b8c4827d9ed655fef8dc20a617 /src/plugins/reviewDB/utils.tsx
parentc9c0ab5acabb07e1a9c699d72c3bbd1b7ffd1738 (diff)
downloadVencord-263fbc377eb6444d97f21642fe5be41e30f0a3e4.tar.gz
Vencord-263fbc377eb6444d97f21642fe5be41e30f0a3e4.tar.bz2
Vencord-263fbc377eb6444d97f21642fe5be41e30f0a3e4.zip
Fix ReviewDB auth (#1227)
Diffstat (limited to 'src/plugins/reviewDB/utils.tsx')
-rw-r--r--src/plugins/reviewDB/utils.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/reviewDB/utils.tsx b/src/plugins/reviewDB/utils.tsx
index 67d043d..da800b0 100644
--- a/src/plugins/reviewDB/utils.tsx
+++ b/src/plugins/reviewDB/utils.tsx
@@ -50,9 +50,9 @@ export function authorize(callback?: any) {
permissions={0n}
clientId="915703782174752809"
cancelCompletesFlow={false}
- callback={async (u: string) => {
+ callback={async (response: any) => {
try {
- const url = new URL(u);
+ const url = new URL(response.location);
url.searchParams.append("clientMod", "vencord");
const res = await fetch(url, {
headers: new Headers({ Accept: "application/json" })