Fall back when Parcel2Go profile scope is denied
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 26s

This commit is contained in:
Hickmeister
2026-10-11 17:02:13 +01:00
parent 53ca438b0e
commit 55c987ef47
5 changed files with 67 additions and 12 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ class DashboardAccessTest extends TestCase
$admin = User::factory()->create(['role' => 'admin']);
$this->actingAs($admin)->get(route('shipping'))->assertOk()->assertSee('Lee Hickman')->assertSee('12.50');
Http::assertSentCount(6);
Http::assertSentCount(4);
Http::assertSent(fn ($request) => $request->url() === 'https://auth.example.test/token'
&& $request['scope'] === 'public-api my-profile');
}