After adding the Passport::enableImplicitGrant();
in AuthServiceProvider.php
then testing with the route
Route::get('/redirect', function () {
$query = http_build_query([
'client_id' => 3,
'redirect_uri' => 'http://consumer.dev/callback',
'response_type' => 'token',
'scope' => '',
]);
return redirect('http://passport.dev/oauth/authorize?'.$query);
});
how to return this to a json in callback?
via Jason Llamorin