0

Error screen

I am trying to make a project which uses google plus api from google cloud console that is used for authentication, but as soon as I click on the id for the authentication it shows this error. I dont know what to do next its frustrating.

I tried some code changes that chat gpt said. I even did pip install --upgrade google-auth google-auth-oauthlib google-auth-httplib2 to upgrade google auth but it didnt work.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449

1 Answers1

0

you need to check what time your machine is running at make sure its in sync with NTP.

detailed explanation of the error message

enter image description here

The way Oauth works is that the authorization server returns to you an authorization code, this code is generated when the user consents to your application accessing their data.

Your system has a very short window in which to use this code. Its under five minutes. In your case if you read the message it clearly states that you have used the token to early. and that you should check your computers clock

If the token was generated at 12:00 it would mean that it can be used probably between 12:00 and 12:05. What do you think the error would be if you tried to use it at say 11:59? Well you would be using it to early.

Check your clock.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449