Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic configuration is giving error for Google. #330

Closed
gaursinghveer007 opened this issue Jan 24, 2019 · 1 comment
Closed

Dynamic configuration is giving error for Google. #330

gaursinghveer007 opened this issue Jan 24, 2019 · 1 comment

Comments

@gaursinghveer007
Copy link

I am trying to set dynamic configuration for Google Login. Please check below code. I am using Php framework.

$config = [
'client_id' => 'xxxxxxxxxxxxxxxxxxx',
'client_secret' => 'xxxxxxxxxxxxxxxxxx',
'redirect' => 'http://www.test.com/google/callback/',
];

return Socialite::buildProvider(\Laravel\Socialite\Two\GoogleProvider::class, $config);

When running this code it's showing "The Response content must be a string or object implementing __toString(), "object" given.".

Please help me out

@driesvints
Copy link
Member

Hi there,

Looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants