mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
Merge pull request #201 from supermemoryai/fix/telegram-login
fix telegram bot link issue
This commit is contained in:
commit
60de67f611
1 changed files with 2 additions and 1 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue