laravel11-react-spa
laravel11-react-spa copied to clipboard
Passport und jwt token auth
The example is very good for getting started, although I haven't watched to the end yet. For my project we need a token validation with beerer JWT token and OAuth 2. I have read that this can be realized with passpord. In addition, I thought about keyclock, where I can log in and then use keyclock to deliver the token with user data such as the userid and a valid session token. Can you perhaps use your preffesional knowledge to provide something for this?
This is really simple
$token = $request->bearerToken();
Have you a full example to use it?