jbilcke-hf HF staff commited on
Commit
c085699
1 Parent(s): 8715c49
Files changed (1) hide show
  1. src/app/api/login/route.ts +6 -1
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
  }