skip to Main Content

WordPress – Can't get refresh token with Google Oauth

I'm using CURL to get access token and refresh token. Now i have 2 functions: public function handle_google_oauth_request() { if (isset($_POST['authorize'])) { $auth_url = 'https://accounts.google.com/o/oauth2/auth?'; $auth_url .= 'client_id=' . urlencode($this->client_id); $auth_url .= '&redirect_uri=' . urlencode($this->redirect_uri); $auth_url .= '&scope=' . urlencode($this->scope);…

VIEW QUESTION
Back To Top
Search