Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8868637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:18:59+00:00 2026-06-14T17:18:59+00:00

I use the Google APIs Client Library for Python (oauth2client app engine). When the

  • 0

I use the Google APIs Client Library for Python (oauth2client app engine). When the access_token expires, do I have to refresh it myself or will it be done by the API?
Now the access_token expires and is not refreshed!

I use the oauth aware decorator. The access type = offline and the refresh token is inside the credentials.

This is the TokenInfo I have received:

{
 "issued_to": "1002825648120.apps.googleusercontent.com",
 "audience": "1002825648120.apps.googleusercontent.com",
 "user_id": "110738386197429542823",
 "scope": "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email",
 "expires_in": 3540,
 "email": "xxxxxxxxx@gmail.com",
 "verified_email": true,
 "access_type": "offline"
}

If I have to refresh the access_token, is there an easy method in the oauth client API to do that?

UPDATE-1 :

I studied the code of oauth2/client.py. I now think that failing to use decorator.http() results in not refreshing the access token. See this (my other) question:
Failed to authorize tokeninfo oauth2 request using decorator.http()

UPDATE-2 : SOLVED :

The problem mentioned above (in UPDATE-1) was solved and also solved this question. The API will try to refresh the access_token (if expired) when calling an authorized http.request.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:19:00+00:00Added an answer on June 14, 2026 at 5:19 pm

    I studied the code of oauth2/client.py. I now think that failing to use decorator.http() results in not refreshing the access token. See this (my other) question: Failed to authorize tokeninfo oauth2 request using decorator.http()

    UPDATE and SOLVED :

    The problem mentioned above was solved and also solved this question. The API will try to refresh the access_token (if expired) when calling an authorized http.request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To access TokenInfo I use the Google APIs Client Library for Python (oauth2client app
I'trying to use Google APIs Client Library for Java to get information about user's
I am trying to use Google App Engine's app.yaml to automatically serve *.html files
I am trying to use Google's places API. I downloaded google-api-java-client-1.6.0-beta.zip library and I'm
I have a project that requires an ASP.Net app to use google credentials and
I found that I can use either: YouTube API Google Data APIs Objective-C Client
i am trying to use the Google APIS in developing a Windows Phone application,
Is it possible to obtain a OAuth2 token to use with Google APIs, using
I have to write a client (in C++) that consumes REST apis of a
I'm creating an Android app and trying to use Google Places API through Google

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.