Skip to content

Commit

Permalink
fix: patch up default redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Dec 15, 2024
1 parent 0100345 commit 9ba88ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ class Auth
public function __construct()
{
$this->middleware('auth.required', function () {
response()->redirect('/auth/login', 401);
response()->redirect('/auth/login');
});

$this->middleware('auth.guest', function () {
response()->json('/dashboard', 401);
response()->redirect('/dashboard');
});

$this->middleware('is', function ($role) {
Expand Down

0 comments on commit 9ba88ab

Please sign in to comment.