GithubHelp home page GithubHelp logo

Comments (9)

tinh1115 avatar tinh1115 commented on May 3, 2024 1

I re-configed file services.php, put the right value for secret key of all service. Currently client id and secret key are the same as the latest version.

Second re-generated secret key and applied to .env

That's all. it's working good on my local now.

Btw your works are cool. Thank you for sharing ^^

from laravel-boilerplate.

tinh1115 avatar tinh1115 commented on May 3, 2024

I checked and understood the config is right. But I saw this message as exception: "Client error response [url] https://accounts.google.com/o/oauth2/token [status code] 401 [reason phrase] Unauthorized".

I developed in localhost btw.

from laravel-boilerplate.

rappasoft avatar rappasoft commented on May 3, 2024

Sometimes localhost is glitchy, but it seems like the tokens set in your .env file aren't right.

from laravel-boilerplate.

tinh1115 avatar tinh1115 commented on May 3, 2024

I checked in method "protected function getTokenFields($code)" the clientid & clientSecret is the same. I think this is why the error happened.

But i checked back the .env config, the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET is different

from laravel-boilerplate.

tinh1115 avatar tinh1115 commented on May 3, 2024

Fixed the problem with same id & secret, because in the services config you put id and secret is GOOGLE_CLIENT_ID for both.

from laravel-boilerplate.

tinh1115 avatar tinh1115 commented on May 3, 2024

I still got this message after posting:
"Client error response [url] https://accounts.google.com/o/oauth2/token [status code] 401 [reason phrase] Unauthorized"

from laravel-boilerplate.

tinh1115 avatar tinh1115 commented on May 3, 2024

Fixed.

from laravel-boilerplate.

rappasoft avatar rappasoft commented on May 3, 2024

How did you fix it?

from laravel-boilerplate.

rappasoft avatar rappasoft commented on May 3, 2024

Thanks! I'll push a fix.

from laravel-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.