浏览代码

ignore: cloud

Dax Raad 1 年之前
父节点
当前提交
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 type { APIEvent } from "@solidjs/start/server"
 import { AuthClient, useAuthSession } from "~/context/auth"
 import { AuthClient, useAuthSession } from "~/context/auth"
 
 
@@ -25,7 +26,5 @@ export async function GET(input: APIEvent) {
       current: id,
       current: id,
     }
     }
   })
   })
-  return {
-    result,
-  }
+  return redirect("/")
 }
 }