Skip to content

Commit

Permalink
passing cookies as it is instead of token
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceBaghel258025 committed Nov 14, 2023
1 parent 80c2d42 commit dddbc89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/app/api/chatmodel/[chatid]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export async function POST(
{
method: "POST",
body: JSON.stringify({ chat: _chat }),
headers: {
Authorization: `Bearer ${await getToken()}`,
},
// headers: [...cookiesArray]
// headers: {
// Authorization: `Bearer ${await getToken()}`,
// },
headers: [...cookiesArray],
},
);
await db
Expand Down
8 changes: 4 additions & 4 deletions src/app/api/generateTitle/[chatid]/[orgid]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export async function POST(
{
method: "POST",
body: JSON.stringify({ chatTitle: fullResponse }),
headers: {
Authorization: `Bearer ${await getToken()}`,
},
// headers: cookiesArray
// headers: {
// Authorization: `Bearer ${await getToken()}`,
// },
headers: cookiesArray,
},
);
await db
Expand Down

0 comments on commit dddbc89

Please sign in to comment.