mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-26 23:51:14 +02:00
fix(connectors): land OAuth callback on connectors panel to resume flow
This commit is contained in:
parent
e705a73ae9
commit
91e05cb59c
1 changed files with 3 additions and 1 deletions
|
|
@ -19,7 +19,9 @@ export async function GET(
|
|||
const response = new NextResponse(null, {
|
||||
status: 302,
|
||||
headers: {
|
||||
Location: `/dashboard/${workspace_id}/new-chat`,
|
||||
// Land on the connectors panel so `useConnectorDialog` (mounted there)
|
||||
// consumes the result cookie and continues the indexing/edit flow.
|
||||
Location: `/dashboard/${workspace_id}/connectors`,
|
||||
},
|
||||
});
|
||||
response.cookies.set(OAUTH_RESULT_COOKIE, result, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue