Skip to content

Instantly share code, notes, and snippets.

View safra36's full-sized avatar
🎯
Focusing

Amir Mohmmad Bagher Nezhad safra36

🎯
Focusing
View GitHub Profile
@safra36
safra36 / auth.ts
Last active March 3, 2026 17:11
Telegram mini-app authorization
// to use it on your webapp, simply create a backend with these functions, and use this to verify authorization
fetch("/auth", {
method : "POST",
body : window.Telegram.WebApp.initData,
})