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

Add guard to handle twitch extension api requests #130

Closed ghostzero closed 1 year ago

ghostzero commented 2 years ago

TODO:

ghostzero commented 1 year ago

Seems to work now :D

Katzen48 commented 1 year ago

Btw. I don't think the tests below PHP 8.0 are necessary. Every version < PHP 8.0 doesn't even get security updates anymore and even PHP 8.0 is out of active support.

romanzipp commented 1 year ago

To be honest I don't really understand which use case will be covered with adding an auth guard. Could you share an example?

Katzen48 commented 1 year ago

When making an extension, you may need to call your backend. For authentication, Twitch provides a JWT signed by the Twitch backend (see docs).

A guard for this use case could reduce the work for implementing this in every project anew.