From 6eb73e617e48d011b1dccba00e9fc349795492d4 Mon Sep 17 00:00:00 2001 From: Salah Alkhwlani Date: Mon, 22 Jul 2024 14:36:06 +0300 Subject: [PATCH] Update OauthMiddleware.php --- src/Http/OauthMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/OauthMiddleware.php b/src/Http/OauthMiddleware.php index b485011..501fb41 100644 --- a/src/Http/OauthMiddleware.php +++ b/src/Http/OauthMiddleware.php @@ -45,7 +45,7 @@ public function handle($request, Closure $next, string $scope = null) } if(!is_null($scope) && !collect(explode(' ', $this->user->getScope()))->contains($scope)){ - abort(401, 'Scope not allowed'); + abort(401, 'Unauthorized Access (The scope not allowed)'); } $exception_at = now()->diffInSeconds($this->user->getExpiredAt());