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

php-google-oauth-2-handler problem - Error 400: invalid_request #46

Open
urtvs opened this issue Dec 29, 2022 · 1 comment
Open

php-google-oauth-2-handler problem - Error 400: invalid_request #46

urtvs opened this issue Dec 29, 2022 · 1 comment

Comments

@urtvs
Copy link

urtvs commented Dec 29, 2022

Hi
We try to use your library install it by composer and run
vendor/rapidwebltd/php-google-oauth-2-handler/src/setup.php

We create oauth key 2.0 for desktop application, copy it in instalation wizard and on last step when we need to open link in browser Google return Error 400: invalid_request

You can’t sign in because {account name} sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error
If you are a developer of {account}, see error details.
Error 400: invalid_request

What we do wrong?
Thanks

@VigoTes
Copy link

VigoTes commented Oct 3, 2023

You need to use application type as "Desktop App" instead of "Web application" when creating Client ID in the Google API console.

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