From 17590846a14fb924b39580ed8b29f42a33fd2316 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 13 Oct 2019 22:25:39 +0400 Subject: [PATCH] fix: return type of parseState removed --- src/Auth/OAuth.php | 2 +- src/Auth/OAuth/Stackoverflow.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Auth/OAuth.php b/src/Auth/OAuth.php index 87991f4e40..780b9175c3 100644 --- a/src/Auth/OAuth.php +++ b/src/Auth/OAuth.php @@ -87,7 +87,7 @@ abstract class OAuth * * @return string */ - public function parseState(string $state): string + public function parseState(string $state) { return json_decode($state, true); } diff --git a/src/Auth/OAuth/Stackoverflow.php b/src/Auth/OAuth/Stackoverflow.php index 5563cec772..78907748ff 100644 --- a/src/Auth/OAuth/Stackoverflow.php +++ b/src/Auth/OAuth/Stackoverflow.php @@ -39,6 +39,7 @@ class Stackoverflow extends OAuth '&state='.urlencode(json_encode($this->state)); } + /** * @param string $code * @@ -46,6 +47,9 @@ class Stackoverflow extends OAuth */ public function getAccessToken(string $code): string { + var_dump($code); + exit(); + $accessToken = $this->request( 'POST', 'https://www.googleapis.com/oauth2/'.$this->version.'/token?'.