aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-08-02 09:09:45 -0700
committerDhravya Shah <[email protected]>2024-08-02 09:09:45 -0700
commit32bb9d7759282aba35d04825a7b972dcce4f6d7e (patch)
tree5cfec38dcda54c2f671301934b7d9c8faf953561
parentfix: people skipping onboarding should still have supermemory.ai saved (diff)
parentMerge pull request #201 from supermemoryai/fix/telegram-login (diff)
downloadsupermemory-32bb9d7759282aba35d04825a7b972dcce4f6d7e.tar.xz
supermemory-32bb9d7759282aba35d04825a7b972dcce4f6d7e.zip
Merge branch 'main' of github.com:supermemoryai/supermemory
-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 (