DEV Community

Discussion on: Create API Rest with Laravel 7.X Passport Authentication And Implement Refresh Token (Part 1)

Collapse
 
cmyers1 profile image
c-myers1

Great tutorial thanks.

Please why is this piece of code first executed outside then inside getTokenAndRefreshToken:

$oClient = OClient::where('password_client', 1)->first();

Executing before the function seems unnecessary.