Appearance
TwitchAuthController
php
class Zairakai\LaravelTwitch\Http\Controllers\TwitchAuthControllerSource: src/Http/Controllers/TwitchAuthController.php
Methods
__construct()
php
public function __construct(TwitchOAuthService $oauth, TwitchApiService $api)callback()
php
public function callback(Request $request): RedirectResponseHandle OAuth callback.
redirect()
php
public function redirect(Request $request): RedirectResponseRedirect to Twitch OAuth.
webhook()
php
public function webhook(Request $request): JsonResponse|ResponseHandle Twitch EventSub webhook.
handleEventSubNotification()
php
protected function handleEventSubNotification(array $payload): voidHandle EventSub notification.
handleEventSubRevocation()
php
protected function handleEventSubRevocation(array $payload): voidHandle EventSub revocation.
verifyWebhookSignature()
php
protected function verifyWebhookSignature(string $body, string $signature, string $timestamp, string $messageId): boolVerify webhook signature.