telegram-web-login
CommunityEnable Telegram-based login for your web app.
Authorkorjavin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables secure Telegram-based user authentication for web applications by integrating the Telegram Login Widget and validating signatures to verify user identity.
Core Features & Use Cases
- Telegram Login Widget integration for browser-based authentication
- HMAC-SHA256 signature validation for Login Widget data and WebApp initData
- Session cookies and per-request API protection via middleware
- Telegram Mini App support with initData-based authentication
- Enforce allowed user IDs to restrict access to trusted accounts
Quick Start
- Set up a Telegram bot with BotFather and obtain a bot token.
- Link your domain with BotFather using /setdomain and ensure domain matches where your login widget is hosted.
- Implement backend validation for both Telegram Login Widget data and WebApp initData using SHA256(bot_token) and HMAC-SHA256("WebAppData", bot_token) respectively.
- Inject bot username into your frontend and render the Telegram Login Widget.
- Handle the login callback to create a secure session cookie and protect API endpoints with the middleware.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: telegram-web-login Download link: https://github.com/korjavin/claude-common-skills/archive/main.zip#telegram-web-login Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.