github-actions[bot]
Update from GitHub Actions
b68afdb
raw
history blame contribute delete
659 Bytes
import{d as t}from"../../nitro/nitro.mjs";import"node:http";import"node:https";import"node:events";import"node:buffer";import"node:fs";import"node:path";import"node:crypto";import"node:url";const o={accept:"application/json","content-type":"application/json","editor-version":"Neovim/0.9.2","editor-plugin-version":"copilot.lua/1.11.4","user-agent":"GithubCopilot/1.133.0"},e=t((async t=>{const e=await fetch("https://github.com/login/device/code",{method:"POST",headers:o,body:JSON.stringify({client_id:"Iv1.b507a08c87ecfe98",scope:"read:user"})});if(e.ok)return await e.json();throw new Error("Failed to fetch authentication data")}));export{e as default};