Skip to content

Commit

Permalink
Merge pull request #6 from firevel/feature/allow-exceptions-in-debug-…
Browse files Browse the repository at this point in the history
…mode

Throw exceptions in debug mode
  • Loading branch information
sl0wik authored Sep 28, 2020
2 parents 2038a9c + 85a21c1 commit 3d6fcf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FirebaseGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public function user(Request $request)
return app(config('auth.providers.users.model'))
->resolveByClaims($token->getClaims());
} catch (\Exception $e) {
if (config('app.debug')) {
throw $e;
}

return;
}
}
Expand Down

0 comments on commit 3d6fcf9

Please sign in to comment.