From fe1e8699f0c6d0d6ec3c8a759bebf48e15ad943a Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Fri, 23 Oct 2015 21:25:23 +0100 Subject: [PATCH] Don't try to set accessType, at least until upstream fixes access to it --- get_oauth_token.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/get_oauth_token.php b/get_oauth_token.php index 7f4a7eb6..46eb28a5 100644 --- a/get_oauth_token.php +++ b/get_oauth_token.php @@ -47,7 +47,6 @@ if (!isset($_GET['code'])) { unset($_SESSION['oauth2state']); exit('Invalid state'); } else { - $provider->accessType = 'offline'; // Try to get an access token (using the authorization code grant) $token = $provider->getAccessToken( 'authorization_code', @@ -55,12 +54,7 @@ if (!isset($_GET['code'])) { 'code' => $_GET['code'] ) ); - // Use this to interact with an API on the users behalf - // echo $token->accessToken.'
'; // Use this to get a new access token if the old one expires echo 'Refresh Token: ' . $token->getRefreshToken(); - - // Unix timestamp of when the token will expire, and need refreshing - // echo $token->expires; }