joelbutcher / socialstream

OAuth for Laravel, simplified.
https://docs.socialstream.dev
MIT License
433 stars 66 forks source link

[5.x]: Allow HandlesInvalidState to return an instance of RedirectResponse #340

Closed Philrobots closed 8 months ago

Philrobots commented 8 months ago

In certain cases, it would be great if the HandlesInvalidState class could also return a RedirectResponse object.

Much simpler when you want to redirect in case of error Invalid State exception

@joelbutcher

joelbutcher commented 8 months ago

@Philrobots It might be better to just allow the base response class from Symfony.

joelbutcher commented 8 months ago

Hmm, on second thoughts, I'll stick with it like this. Don't want json or file responses returned