Skip to content

Commit 5c7b2fa

Browse files
committed
fix: handle changes to dash API
1 parent 3062947 commit 5c7b2fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/dash.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export async function getRootData(): Promise<DashRootData> {
179179
const req = await fetch(`${DASH_BASE_URL}_app?_data_`, {
180180
method: "GET",
181181
headers: {
182-
"Cookie": `token=${state.accessToken.value}`,
182+
"Cookie": `token=${state.accessToken.value}; deno_auth_ghid=0`,
183183
},
184184
});
185185
if (req.status !== 200) {
@@ -196,7 +196,7 @@ export async function getUserProjects(): Promise<DashProject> {
196196
const req = await fetch(`${DASH_BASE_URL}projects/index?_data_`, {
197197
method: "GET",
198198
headers: {
199-
"Cookie": `token=${state.accessToken.value}`,
199+
"Cookie": `token=${state.accessToken.value}; deno_auth_ghid=0`,
200200
},
201201
});
202202
if (req.status !== 200) {
@@ -212,7 +212,7 @@ export async function getProjectDetails(name: string): Promise<DashProject> {
212212
const req = await fetch(`${DASH_BASE_URL}projects/${name}?_data_`, {
213213
method: "GET",
214214
headers: {
215-
"Cookie": `token=${state.accessToken.value}`,
215+
"Cookie": `token=${state.accessToken.value}; deno_auth_ghid=0`,
216216
},
217217
});
218218
if (!req.ok) {
@@ -230,7 +230,7 @@ export async function getOrganizationDetail(
230230
const req = await fetch(`${DASH_BASE_URL}orgs/${id}?_data_`, {
231231
method: "GET",
232232
headers: {
233-
"Cookie": `token=${state.accessToken.value}`,
233+
"Cookie": `token=${state.accessToken.value}; deno_auth_ghid=0`,
234234
},
235235
});
236236
if (req.status !== 200) {
@@ -246,7 +246,7 @@ export async function getProjectDbs(name: string): Promise<DashDb[]> {
246246
const req = await fetch(`${DASH_BASE_URL}projects/${name}/kv?_data_`, {
247247
method: "GET",
248248
headers: {
249-
"Cookie": `token=${state.accessToken.value}`,
249+
"Cookie": `token=${state.accessToken.value}; deno_auth_ghid=0`,
250250
},
251251
});
252252
if (!req.ok) {

0 commit comments

Comments
 (0)