Skip to content

Commit

Permalink
Merge pull request #42 from pedmindset/hotfix
Browse files Browse the repository at this point in the history
Fixed error returning request without guards Closes #40
  • Loading branch information
sfelix-martins authored Jul 31, 2018
2 parents 50a782d + 992762b commit 790ac58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Middleware/MultiAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ public function __construct(
public function handle($request, Closure $next, ...$guards)
{
// If don't has any guard follow the flow
// stop laravel from checking for a token if session is not set
if (empty($guards)) {
return $this->authenticate($guards);
$this->authenticate($guards);
return $next($request);
}

$psrRequest = ServerRequest::createRequest($request);
Expand Down

0 comments on commit 790ac58

Please sign in to comment.