Skip to content

TwitchAuthController ​

php
class Zairakai\LaravelTwitch\Http\Controllers\TwitchAuthController

Source: src/Http/Controllers/TwitchAuthController.php

Methods ​

__construct() ​

php
public function __construct(TwitchOAuthService $oauth, TwitchApiService $api)

callback() ​

php
public function callback(Request $request): RedirectResponse

Handle OAuth callback.

redirect() ​

php
public function redirect(Request $request): RedirectResponse

Redirect to Twitch OAuth.

webhook() ​

php
public function webhook(Request $request): JsonResponse|Response

Handle Twitch EventSub webhook.

handleEventSubNotification() ​

php
protected function handleEventSubNotification(array $payload): void

Handle EventSub notification.

handleEventSubRevocation() ​

php
protected function handleEventSubRevocation(array $payload): void

Handle EventSub revocation.

verifyWebhookSignature() ​

php
protected function verifyWebhookSignature(string $body, string $signature, string $timestamp, string $messageId): bool

Verify webhook signature.

Documentation of 4.1.4 , built from a03e949 on 4.1.4 by pipeline #2949087255 on 2026-10-11.