aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-08-01 15:07:36 -0700
committerGitHub <[email protected]>2024-08-01 15:07:36 -0700
commit60de67f61124fd12d3eb37773af584e5404c16d2 (patch)
tree83d98c9b91cbb68a3178d9d95727a1b038d04277 /apps
parentnevermind. disabled sentry. again. (diff)
parentfix telegram bot link issue (diff)
downloadsupermemory-60de67f61124fd12d3eb37773af584e5404c16d2.tar.xz
supermemory-60de67f61124fd12d3eb37773af584e5404c16d2.zip
Merge pull request #201 from supermemoryai/fix/telegram-login
fix telegram bot link issue
Diffstat (limited to 'apps')
-rw-r--r--apps/web/app/(auth)/signin/page.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx
index 3b563b90..35e6bab6 100644
--- a/apps/web/app/(auth)/signin/page.tsx
+++ b/apps/web/app/(auth)/signin/page.tsx
@@ -15,10 +15,11 @@ async function Signin({
}: {
searchParams: Record<string, string>;
}) {
+ const telegramUser = searchParams.telegramUser;
const user = await auth();
if (user) {
- redirect("/home");
+ redirect(`/home` + (telegramUser ? `?telegramUser=${telegramUser}` : ""));
}
return (