mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
fix: return type of parseState removed
This commit is contained in:
parent
26071b9a3c
commit
17590846a1
2 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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?'.
|
||||
|
|
|
|||
Loading…
Reference in a new issue