Skip to content

[DO NOT MERGE] User Account Handling with Telegram Integration: Code example with Splash modal - #18

Open
nicolqs wants to merge 2 commits into
mainfrom
nico/option2
Open

[DO NOT MERGE] User Account Handling with Telegram Integration: Code example with Splash modal#18
nicolqs wants to merge 2 commits into
mainfrom
nico/option2

Conversation

@nicolqs

@nicolqs nicolqs commented Sep 23, 2024

Copy link
Copy Markdown

User Account Handling with Telegram Integration

To ensure a smooth experience for app owners with existing users, we’ve added a feature that prevents unnecessary account creation for users who already have an account but haven't linked it with Telegram yet. This feature leverages the isAuthWithTelegram() function to check whether the user is already authenticated via Telegram:

  • If Yes (user is linked to Telegram): The user is automatically logged in.
  • If No (user isn't linked to Telegram): A splash modal is displayed, prompting the user to confirm whether they already have an account with XYZ. This helps app owners maintain a single user identity and avoid duplicate accounts.

Screenshot 2024-09-23 at 18 09 51

@vercel

vercel Bot commented Sep 23, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
telegram-miniapp-dynamic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 5:34pm

Comment thread package.json Outdated
@ImTheCodeFarmer

Copy link
Copy Markdown

Just what I was looking for :) 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants