I use Laravel 6 and GuzzleHTTP 7.
I could manage to make a request to an external (REST-) API and successfully authorize and get a token back:
{"access_token":"FooXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MjExNjkyNDQsImlhdCI6MTYxODU3aNzI0NCwibmJmIjoxNjE4NTc3MjQ0LCJpZGVudGl0eSI6MTQzfQ.wdDzVbE-5O8mfsIqzNvXFpv7THkYYp522HMpyEc8LX0BAR"}
Do I have to save this token explicitly in a session? I'm trying to use this token in every following requests to the external API.
By googling I found only tutorials for Laravel how to generate JWT but not how to proceed when Laravel is used as a client and requests JWT.
Any help much appreciated!
UPDATE: The Laravel APP itself is the client (regardless of the user "inside" Laravel).