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"