Skip to content

Commit

Permalink
Log exceptions in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0wik committed Sep 28, 2020
1 parent 2038a9c commit 85a21c1
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 85a21c1

Please sign in to comment.