Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
c085699
1
Parent(s):
8715c49
..
Browse files
src/app/api/login/route.ts
CHANGED
@@ -28,7 +28,12 @@ export async function GET(req: NextRequest) {
|
|
28 |
|
29 |
// this is the path of the AI Tube page which the user was browser
|
30 |
// eg. this can be /account, /, or nothing
|
31 |
-
const redirectTo = `${state.redirectTo || "/"}`
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
return NextResponse.redirect(`https://aitube.at${redirectTo}${params}`)
|
34 |
}
|
|
|
28 |
|
29 |
// this is the path of the AI Tube page which the user was browser
|
30 |
// eg. this can be /account, /, or nothing
|
31 |
+
// const redirectTo = `${state.redirectTo || "/"}`
|
32 |
+
|
33 |
+
// for now we have to always return to /account, since this is where
|
34 |
+
// the oauth "finisher" code resides
|
35 |
+
const redirectTo = "/account"
|
36 |
+
|
37 |
|
38 |
return NextResponse.redirect(`https://aitube.at${redirectTo}${params}`)
|
39 |
}
|