romanzipp / Laravel-Twitch

Twitch Helix API PHP Wrapper for Laravel
https://packagist.org/packages/romanzipp/laravel-twitch
MIT License
108 stars 18 forks source link

validate oauth token endpoint get instead of post #149

Closed CodeWizardTV closed 1 year ago

CodeWizardTV commented 1 year ago

In OAuthTrait.php validateOAuthToken needs to be changed to get instead of post, otherwise it returns a 404

public function validateOAuthToken(): Result
    {
        return $this->get(self::OAUTH_BASE_URI . 'validate');
    }
romanzipp commented 1 year ago

Thanks for the report! Fixed in 4.6.1