mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix telegram bot link issue
This commit is contained in:
parent
bf6e2e7666
commit
fc8bfbe09a
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