Skip to content
docsv0.1.0

TelegramAuthServiceInterface

Contract for Telegram Login Widget verification.

TelegramAuthServiceInterface::verify()

abstract public function verify(array $data): Milpa\OAuth\DTO\TelegramUserInfo

Verify and extract user info from Telegram Login Widget data.

Parameters

Parameters of verify()
NameTypeDescription
$dataarray<string, mixed>Raw data from Telegram widget

Returns

Verified user info

Throws

\RuntimeException If verification fails