mirror of
https://gitea.com/PublicAffairs/openai-github-copilot.git
synced 2025-07-23 12:23:08 +02:00
/token: possibility to use other client_id
Such as: - Iv23ctfURkiMfJ4xr5mv (GitHub Copilot for JetBrains IDEs) - 01ab8ac9400c4e429b23 (Visual Studio Code)
This commit is contained in:
@@ -63,7 +63,7 @@ const safeFetch = async (url, options) => {
|
|||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", async () => {
|
document.addEventListener("DOMContentLoaded", async () => {
|
||||||
let url = "https://github.com/login/device/code";
|
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({
|
let body = JSON.stringify({
|
||||||
client_id: clientId,
|
client_id: clientId,
|
||||||
scope: "read:user"
|
scope: "read:user"
|
||||||
|
Reference in New Issue
Block a user