electron-google-oauth2 icon indicating copy to clipboard operation
electron-google-oauth2 copied to clipboard

Is there an APi for refresh token with refresh token?

Open haanamomo opened this issue 3 years ago • 0 comments

Hi, I found that if I'm going to refresh the user's token, I need to send a POST request, I didn't find that API in document, so currently I implemented it by myself, but I'm curious is there an API designed for that in this package?

POST https://www.googleapis.com/oauth2/v4/token
Content-Type: application/json

{
  "client_id": <client_id>,
  "client_secret": <client_secret>,
  "refresh_token": <refresh_token>,
  "grant_type": "refresh_token"
}

haanamomo avatar Nov 26 '21 07:11 haanamomo