V
V
Vadym Piatkovskyi2018-01-30 17:37:20
Objective-C
Vadym Piatkovskyi, 2018-01-30 17:37:20

How to update google accessToken?

Hello comrades.
I need your help. Using the Google Sign In API - they give me the AccessToken I'm interested in, but the duration of its action is one hour.
Question: How to update the token without straining the user with endless data entry.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadym Piatkovskyi, 2018-02-01
@Zinapp

Sorry, the decision was right in front of my eyes.

POST /oauth2/v4/token HTTP/1.1
Host: www.googleapis.com
Content-Type: application/x-www-form-urlencoded

client_id=<your_client_id>&
client_secret=<your_client_secret>&
refresh_token=<refresh_token>&
grant_type=refresh_token

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question