Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Telegram Login Auth

Laravel Telegram Login Auth Laravel Package

azate/laravel-telegram-login-auth

Laravel package that adds Telegram Login authentication to your app. It verifies signed Telegram Login Widget data, integrates with Laravel guards, and lets users sign in via Telegram with configurable routes, middleware, and user provisioning.

View on GitHub
Deep Wiki
Context7

This package is a Laravel service provider which provides support for Laravel Login and is very easy to integrate with any project that requires Telegram authentication.

Frequently asked questions about Laravel Telegram Login Auth
How do I install azate/laravel-telegram-login-auth in a Laravel app?
Install it with Composer using composer require azate/laravel-telegram-login-auth, then let Laravel package auto-discovery register the service provider. Publish the package config and set your Telegram bot token, bot username, and callback details. Confirm the exact publish tag and config keys in the README before wiring routes, since naming can differ between releases.
Which Laravel and PHP versions does this Telegram login package support?
The repository and its composer.json are the authoritative source, and the material provided does not state explicit Laravel or PHP version constraints. Pin the exact package version in composer.json and run your authentication regression tests on the Laravel major you actually deploy. Treat unclear version support as a spike item rather than an assumption.
How does the package verify Telegram Login Widget data and prevent replay attacks?
Telegram signs Login Widget payloads with your bot token, so a correct implementation validates the HMAC signature and rejects payloads whose auth_date is too old to prevent replay. Read the validation code and write tests with tampered hashes, expired timestamps, and reused payloads before trusting it in production. For an authentication path, verify this yourself rather than relying on documentation alone.
Does it work with Laravel's built-in auth guards and session authentication?
It is built for Laravel's session and guard-based authentication, which makes it a natural fit for Blade, Inertia, or Livewire login pages. Confirm which guard the package assumes and whether it logs the user in directly or returns a validated payload for your controller to handle. If you use custom guards or multiple identity providers, isolate the package behind your own service.
How does the package map Telegram users to my existing users table?
The package handles user provisioning, but you should keep your existing users table and guard as the source of truth by adding a unique telegram_id column. For existing email and password accounts, require an explicit authenticated linking flow instead of auto-merging by email or Telegram username. Check how it behaves with duplicate emails and pre-existing users before going live.
Can I customize the login routes, middleware, and redirect behavior?
Routes, middleware, and redirects are configurable, so you can usually wrap the login routes in your own middleware group and adjust post-login redirects through config. Publish the config file and read the route definitions to see exactly what is exposed in your version. Roll out new login routes behind a feature flag during the migration.
Is this package suitable for an API-only or headless SPA architecture?
It is a weaker fit for API-only, headless SPA, or mobile-first apps because it assumes Laravel's session and guard flow rather than issuing API tokens. If the package exposes a validation or service layer, you can call it from a custom controller and issue your own tokens. Otherwise, wrap Telegram verification in an internal service instead of depending on package routes and sessions.
How should I store the Telegram bot token and configure the callback URL securely?
Keep the bot token in your environment file or a secrets manager, never in version control, and rotate it immediately if it leaks. The callback URL must be HTTPS and match the domain configured with Telegram, including trusted-proxy settings when you sit behind a load balancer. Limit who can read production environment variables and audit token access.
How do I test Telegram login in staging without exposing production bot credentials?
Use a separate staging Telegram bot with its own token and a staging callback URL so production credentials never reach test environments. Write feature tests around the validation boundary using signed fixtures, plus negative tests for invalid signatures and expired auth_date values. Run the package's own test suite and your authentication regression tests before every upgrade.
What are the alternatives to this package, and is it actively maintained?
Laravel Socialite with a custom Telegram provider is a common alternative when you want long-term control over identity, and a small in-house validator is viable given how simple the payload check is. This package has a small surface area and an MIT license, which is favorable, but low GitHub adoption and single-maintainer risk mean you should review changelogs, tests, and issue responsiveness. Treat it as an accelerator rather than a strategic identity platform.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package