ALL >> Web-Design >> View Article
Vue 3 Telegram Login
Installation
You've to run this command to install it with npm:
$ npm i vue3-telegram-login --save
Usage
Next, You've to Import telegram-login-temp, pass it to the component, and then you can utilize it in your template.
Loading...
import { telegramLoginTemp } from 'vue3-telegram-login'
import { ref } from 'vue'
const isLoaded = ref(false)
function telegramLoadedCallbackFunc () {
console.log('script is loaded')
isLoaded.value = true
}
function yourCallbackFunction (user) {
// gets user as an input
// id, first_name, last_name, username,
// photo_url, auth_date and hash
console.log(user)
}
Closing Notes
You need to set the domain to your bot if you want to use Telegram Login (/setdomain command to @BotFather)
You've to validate the authentication and the integrity of the data received by correlating the received hash parameter with the hexadecimal representation of the HMAC-SHA-256 signature of the data-check-string with the SHA256 hash of the bot's token utilized as a secret key (source).
You can observe some code samples on this page.
Don't disable third party cookies if you want to use Telegram Login as a User (thanks @robverhoef )
Add Comment
Web Design Articles
1. Where Creativity Meets Iconic Logo DesignAuthor: Prettify Creative
2. How Modern Hrm Software Simplifies The Entire Hr Process
Author: Connect 360
3. Seo Trends In India For 2026: What Businesses Need To Know Now
Author: bharathi
4. How To Choose The Right Php Development Company In Riyadh
Author: Andy
5. How Social Media Marketing And Website Design Services In Pune Drive Digital Success?
Author: digitaldoraemon
6. Why Is The Demand For Polymarket Clone Scripts Growing In 2026?
Author: Peterparker
7. A Brief Guide On Hiring A Codeigniter Development Company In Riyadh
Author: Andy
8. Website Development Company In Delhi – Affordable & High-quality Web Design
Author: Prettify Creative
9. How To Choose The Right Tech Stack For Your Next Project
Author: Creamerz Soft
10. Reddybook: A Trusted Platform For Online Gaming Enthusiasts
Author: reddy book
11. Large Language Models & Emotional Intelligence: What The Latest Nature Study Reveals
Author: doaguru infosystems
12. Golibrary – Library Manager App: A Smarter Way To Run Modern Libraries
Author: Modern Library Management Application
13. Web Development Company In Coimbatore
Author: webbitech
14. Vue.js Development Company – Modern Frontend Experts
Author: bhumika parihar
15. Jenkins Development & Ci/cd Automation Services In Usa
Author: brainbell10






