Menu

#InitData

7 posts

Feed·
7 of 7 posts
Prevent Session Injection in Telegram Mini Apps with PHP initData HMAC Checks
📰
0Read More

Prevent Session Injection in Telegram Mini Apps with PHP initData HMAC Checks

DEV Community: php·Serhii·6 days ago
#XiIDb1D8
#devto#dev#telegram#user#string

Parse and HMAC-verify Telegram WebApp initData in PHP to block client-side data tampering and replay attacks.

15s
Stop Client User Spoofing in React Telegram Mini Apps with Backend HMAC Check
📰
0Read More

Stop Client User Spoofing in React Telegram Mini Apps with Backend HMAC Check

DEV Community: react·Serhii·19 days ago
#5aobiHdt
#devtoreact#devto#dev#telegram#initdata

Validate raw initData via HMAC-SHA256 in Node.js before mounting native Telegram MainButton controls in your React application.

15s
Block Impersonated Mini App Sessions by Enforcing Strict initData HMAC Verification in PHP
📰
0Read More

Block Impersonated Mini App Sessions by Enforcing Strict initData HMAC Verification in PHP

DEV Community: php·Serhii·21 days ago
#Ks9okpPl
#devto#dev#telegram#user#initdata

Validate Telegram Mini App raw initData on the server, check signature HMAC hashes with hash_equals, and reject stale auth_date timestamps.

15s
Secure Telegram Stars Payment Flow in PHP: sendInvoice pre_checkout_query successful_payment
📰
0Read More

Secure Telegram Stars Payment Flow in PHP: sendInvoice pre_checkout_query successful_payment

DEV Community: php·Serhii·28 days ago
#LPGKnvLI
#devto#dev#invoice#hmac#payment

Build a Telegram bot that accepts Stars payments with server-side HMAC validation of initData, proper invoice creation, and safe payment handling — av

15s
Prevent Mini App Identity Spoofing with Server-Side HMAC Validation in PHP
📰
0Read More

Prevent Mini App Identity Spoofing with Server-Side HMAC Validation in PHP

DEV Community: php·Serhii·about 1 month ago
#rVKEGI5d
#devto#dev#string#telegram#initdata

Validate Telegram WebApp initData on the server using PHP to reject spoofed user IDs and block replay attacks with auth_date checks.

15s
Stop User ID Spoofing in React Telegram Mini Apps with PHP HMAC Auth
📰
0Read More

Stop User ID Spoofing in React Telegram Mini Apps with PHP HMAC Auth

DEV Community: php·Serhii·about 1 month ago
#WDukXEF7
#devto#dev#telegram#initdata#token

Send raw initData to PHP, verify the HMAC signature and auth_date, and issue a JWT before allowing client actions.

15s