mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-18 21:15:16 +02:00
refactor(web): enhance redirect response in callback route
This commit is contained in:
parent
c3a96aa532
commit
55c2e5c0d8
1 changed files with 4 additions and 1 deletions
|
|
@ -16,8 +16,11 @@ export async function GET(
|
|||
};
|
||||
const result = JSON.stringify(payload);
|
||||
|
||||
const response = NextResponse.redirect(`/dashboard/${search_space_id}/new-chat`, {
|
||||
const response = new NextResponse(null, {
|
||||
status: 302,
|
||||
headers: {
|
||||
Location: `/dashboard/${search_space_id}/new-chat`,
|
||||
},
|
||||
});
|
||||
response.cookies.set(OAUTH_RESULT_COOKIE, result, {
|
||||
path: "/",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue