I am using googles official oauth2client.client to access the google plus api. I have a refresh token (that does not expire) stored in a database, and need to recreate the
You could store the entire credentials rather than only the refresh token:
json = credentials.to_json() credentials = Credentials.new_from_json(json)
Look at the Storage object which does it this way.