diff options
| author | Dhravya Shah <[email protected]> | 2024-08-01 15:07:36 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-01 15:07:36 -0700 |
| commit | 60de67f61124fd12d3eb37773af584e5404c16d2 (patch) | |
| tree | 83d98c9b91cbb68a3178d9d95727a1b038d04277 /apps | |
| parent | nevermind. disabled sentry. again. (diff) | |
| parent | fix telegram bot link issue (diff) | |
| download | supermemory-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.tsx | 3 |
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 ( |