/token: possibility to use other client_id

Such as:

- Iv23ctfURkiMfJ4xr5mv (GitHub Copilot for JetBrains IDEs)
- 01ab8ac9400c4e429b23 (Visual Studio Code)
This commit is contained in:
johnd0e
2025-07-12 22:16:55 +02:00
parent 9f1cc9465d
commit 9407aeb905

View File

@@ -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"