Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nicolqs
Copy link
Contributor

@nicolqs nicolqs commented Sep 23, 2024

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

Copy link

vercel bot commented Sep 23, 2024

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

package.json Outdated Show resolved Hide resolved
@ImTheCodeFarmer
Copy link

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