TelegramAuthService
Telegram Login Widget verification. Validates HMAC signature of widget data using the bot token.
TelegramAuthService::__construct()
public function __construct(string $botToken):Parameters
| Name | Type | Description |
|---|---|---|
| $botToken | string |
TelegramAuthService::verify()
public function verify(array $data): Milpa\OAuth\DTO\TelegramUserInfoVerify the HMAC-SHA-256 signature of Telegram Login Widget data and reject payloads older than the 24-hour auth window.
Parameters
| Name | Type | Description |
|---|---|---|
| $data | array |