Dax Raad 5 месяцев назад
Родитель
Сommit
63c7c921ed
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      cloud/app/src/routes/auth/callback.ts

+ 2 - 3
cloud/app/src/routes/auth/callback.ts

@@ -1,3 +1,4 @@
+import { redirect } from "@solidjs/router"
 import type { APIEvent } from "@solidjs/start/server"
 import { AuthClient, useAuthSession } from "~/context/auth"
 
@@ -25,7 +26,5 @@ export async function GET(input: APIEvent) {
       current: id,
     }
   })
-  return {
-    result,
-  }
+  return redirect("/")
 }