From 9407aeb905ed8442db16147fc6ea4b9170e1cb1e Mon Sep 17 00:00:00 2001 From: johnd0e <1838643+johnd0e@users.noreply.github.com> Date: Sat, 12 Jul 2025 22:16:55 +0200 Subject: [PATCH] /token: possibility to use other `client_id` Such as: - Iv23ctfURkiMfJ4xr5mv (GitHub Copilot for JetBrains IDEs) - 01ab8ac9400c4e429b23 (Visual Studio Code) --- src/get_copilot_token.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/get_copilot_token.html b/src/get_copilot_token.html index e112820..fec5eaf 100644 --- a/src/get_copilot_token.html +++ b/src/get_copilot_token.html @@ -63,7 +63,7 @@ const safeFetch = async (url, options) => { document.addEventListener("DOMContentLoaded", async () => { let url = "https://github.com/login/device/code"; - const clientId = "Iv1.b507a08c87ecfe98"; // GitHub Copilot Plugin by GitHub + const clientId = window.location.hash?.slice(1) || "Iv1.b507a08c87ecfe98"; // GitHub Copilot Plugin by GitHub let body = JSON.stringify({ client_id: clientId, scope: "read:user"