Skip to content
Advertisement

Laravel Passport callback route returns null

I am learning Laravel Passport and developing an OAuth2 server. After creating a client I made the following call to get the authorization code

JavaScript

The call works as expected and I got the authorization code, however when redirecting to the callback route which is defined like so

JavaScript

It didn’t work, the response instance is just null. I can’t figure out what might be the issue.

Advertisement

Answer

So I finally solved the problem, I just have to run php artisan config:cache . [reference]

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement