Skip to content

Commit

Permalink
[5.x]: Allow HandlesInvalidState to return an instance of RedirectRes…
Browse files Browse the repository at this point in the history
…ponse (#340)

Co-authored-by: Philrobots <[email protected]>
  • Loading branch information
Philrobots and Philrobots authored Mar 8, 2024
1 parent 7ee2e22 commit 7ffeea9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Contracts/HandlesInvalidState.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace JoelButcher\Socialstream\Contracts;

use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Response;
use Laravel\Socialite\Two\InvalidStateException;

Expand All @@ -10,5 +11,5 @@ interface HandlesInvalidState
/**
* Handle an invalid state exception from a Socialite provider.
*/
public function handle(InvalidStateException $exception): Response;
public function handle(InvalidStateException $exception): Response | RedirectResponse;
}

0 comments on commit 7ffeea9

Please sign in to comment.