mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
chore: added null coalescing operator
This commit is contained in:
parent
2930c32184
commit
e4122e236c
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ class Slack extends OAuth2
|
|||
'code' => $code,
|
||||
'redirect_uri' => $this->callback
|
||||
])
|
||||
), true)['authed_user'];
|
||||
), true)['authed_user'] ?? [];
|
||||
}
|
||||
|
||||
return $this->tokens;
|
||||
|
|
@ -85,7 +85,7 @@ class Slack extends OAuth2
|
|||
'refresh_token' => $refreshToken,
|
||||
'grant_type' => 'refresh_token'
|
||||
])
|
||||
), true)['authed_user'];
|
||||
), true)['authed_user'] ?? [];
|
||||
|
||||
if (empty($this->tokens['refresh_token'])) {
|
||||
$this->tokens['refresh_token'] = $refreshToken;
|
||||
|
|
|
|||
Loading…
Reference in a new issue