Menu

#InitData

4 posts

Feed·
4 of 4 posts
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·about 10 hours 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·8 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·12 days 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·22 days 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