aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/(auth)
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-06-23 20:04:09 -0500
committerDhravya <[email protected]>2024-06-23 20:04:09 -0500
commit51dd5ec9dd35d87c2e93a8e5a64fa963caaa182a (patch)
treebbd6a2d0d1029c5aedcd2a7121987083649598d7 /apps/web/app/(auth)
parentadded backend route for telegram bot and others to be possible (diff)
downloadsupermemory-51dd5ec9dd35d87c2e93a8e5a64fa963caaa182a.tar.xz
supermemory-51dd5ec9dd35d87c2e93a8e5a64fa963caaa182a.zip
made and documented the telegram bot (HYPE)
Diffstat (limited to 'apps/web/app/(auth)')
-rw-r--r--apps/web/app/(auth)/signin/page.tsx14
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx
index d7bad8da..48074bf4 100644
--- a/apps/web/app/(auth)/signin/page.tsx
+++ b/apps/web/app/(auth)/signin/page.tsx
@@ -6,7 +6,17 @@ import { Google } from "@repo/ui/components/icons";
export const runtime = "edge";
-async function Signin() {
+async function Signin({
+ searchParams,
+}: {
+ searchParams: Record<string, string | string[] | undefined>;
+}) {
+ const searchParamsAsString = Object.keys(searchParams)
+ .map((key) => {
+ return `${key}=${searchParams[key]}`;
+ })
+ .join("&");
+
return (
<div className="flex items-center justify-between min-h-screen">
<div className="relative w-full lg:w-1/2 flex items-center justify-center lg:justify-start min-h-screen bg-secondary p-8">
@@ -30,7 +40,7 @@ async function Signin() {
action={async () => {
"use server";
await signIn("google", {
- redirectTo: "/home?firstTime=true",
+ redirectTo: `/home?firstTime=true&${searchParamsAsString}`,
});
}}
>