@ahoi You wouldn’t test this… because you’re using Passport completely wrong.
What is app()->handle($request) all about?
Passport is an OAuth server implementation. So either use an appropriate OAuth grant type where you don’t expose your client’s secret key, or use Sanctum instead which is literally built for authentication things like Vue front-ends.
If you wish to stick with Passport, then the most appropriate grant type would be authorization code grant with PKCE:
The Authorization Code grant with "Proof Key for Code Exchange" (PKCE) is a secure way to authenticate single page applications or native applications to access your API.