Skip to content

Commit

Permalink
feat: add macroable guards
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 committed Jul 18, 2024
1 parent c50c6cb commit 7588b65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Guards/AuthenticationGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Auth0\SDK\Utility\HttpResponse;
use Illuminate\Auth\Events\{Login, Logout};
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Support\Traits\Macroable;

use Throwable;

Expand All @@ -26,7 +27,9 @@
* @api
*/
final class AuthenticationGuard extends GuardAbstract implements AuthenticationGuardContract
{
{
use Macroable;

/**
* @var string
*/
Expand Down
3 changes: 3 additions & 0 deletions src/Guards/AuthorizationGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Auth0\Laravel\UserProviderContract;
use Auth0\SDK\Utility\HttpResponse;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Support\Traits\Macroable;

use function is_array;
use function is_string;
Expand All @@ -19,6 +20,8 @@
*/
final class AuthorizationGuard extends GuardAbstract implements AuthorizationGuardContract
{
use Macroable;

public function find(): ?CredentialEntityContract
{
if ($this->isImpersonating()) {
Expand Down

0 comments on commit 7588b65

Please sign in to comment.