new funcionality
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Controllers\OAuth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\TokenRevocation;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class AuthorizedAppController extends Controller
|
||||
@@ -28,8 +29,7 @@ class AuthorizedAppController extends Controller
|
||||
|
||||
abort_unless($token, 404);
|
||||
|
||||
$token->revoke();
|
||||
$token->refreshToken?->revoke();
|
||||
TokenRevocation::revoke($token);
|
||||
|
||||
return response()->noContent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user