Apr 17, 2020 09:28 PM
(This post was last modified: Apr 18, 2020 08:58 AM by SIM-4403469.)
!Note: Only for Laravel Developers/Programmers
I was trying to access my local api using access_token but how could i import the access_token to my client app using .env configuration file so that it would retrieve data from my local api. both projects are on my local environment.
My api can now generate access_token by the use of Passport and OAuth2.0 Implementation
![[Image: UA0iVyH.png]](https://i.imgur.com/UA0iVyH.png)
Just a connection of the client to api that everytime the client need to access the api it uses access_token rather than regular login.
I was trying to access my local api using access_token but how could i import the access_token to my client app using .env configuration file so that it would retrieve data from my local api. both projects are on my local environment.
My api can now generate access_token by the use of Passport and OAuth2.0 Implementation
![[Image: UA0iVyH.png]](https://i.imgur.com/UA0iVyH.png)
Just a connection of the client to api that everytime the client need to access the api it uses access_token rather than regular login.

