2
0
Dax Raad 6 сар өмнө
parent
commit
63c7c921ed

+ 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("/")
 }