From 5883ebb887bfe43dbfeb9b28b4eee3fe6ae8a406 Mon Sep 17 00:00:00 2001 From: NoCrypt <57245077+NoCrypt@users.noreply.github.com> Date: Sun, 4 Aug 2024 08:31:44 +0700 Subject: [PATCH] fix(auth): please be clear T_T --- common/components/Sidebar.svelte | 2 +- common/views/Settings/Settings.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/components/Sidebar.svelte b/common/components/Sidebar.svelte index e46c1fc..a2379bc 100644 --- a/common/components/Sidebar.svelte +++ b/common/components/Sidebar.svelte @@ -48,7 +48,7 @@ if (anilistClient.userID?.viewer?.data?.Viewer) { $logout = true } else { - IPC.emit('open', 'https://anilist.co/api/v2/oauth/authorize?client_id=20321&response_type=token') // Change redirect_url to migu://auth + IPC.emit('open', 'https://anilist.co/api/v2/oauth/authorize?client_id=20321&response_type=token') // Change redirect_url to migu://auth/ if (platformMap[window.version.platform] === 'Linux') { toast('Support Notification', { description: "If your linux distribution doesn't support custom protocol handlers, you can simply paste the full URL into the app.", diff --git a/common/views/Settings/Settings.svelte b/common/views/Settings/Settings.svelte index 005157b..09005ce 100644 --- a/common/views/Settings/Settings.svelte +++ b/common/views/Settings/Settings.svelte @@ -74,7 +74,7 @@ if (anilistClient.userID?.viewer?.data?.Viewer) { $logout = true } else { - IPC.emit('open', 'https://anilist.co/api/v2/oauth/authorize?client_id=20321&response_type=token') // Change redirect_url to migu://auth + IPC.emit('open', 'https://anilist.co/api/v2/oauth/authorize?client_id=20321&response_type=token') // Change redirect_url to migu://auth/ if (platformMap[window.version.platform] === 'Linux') { toast('Support Notification', { description: "If your linux distribution doesn't support custom protocol handlers, you can simply paste the full URL into the app.",