mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +00:00
Fix Buffer usage in github-copilot.ts - use atob()
This commit is contained in:
parent
c10fc1e081
commit
481bc79f83
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
import { getModels } from "../../models.js";
|
import { getModels } from "../../models.js";
|
||||||
import type { OAuthCredentials } from "./types.js";
|
import type { OAuthCredentials } from "./types.js";
|
||||||
|
|
||||||
const decode = (s: string) => Buffer.from(s, "base64").toString();
|
const decode = (s: string) => atob(s);
|
||||||
const CLIENT_ID = decode("SXYxLmI1MDdhMDhjODdlY2ZlOTg=");
|
const CLIENT_ID = decode("SXYxLmI1MDdhMDhjODdlY2ZlOTg=");
|
||||||
|
|
||||||
const COPILOT_HEADERS = {
|
const COPILOT_HEADERS = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue