Skip to content

Commit b52c089

Browse files
authored
Update Client.php (#1850)
confidential() always returns false as the secret attribute is hidden.
1 parent 8b24400 commit b52c089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function hasScope(string $scope): bool
209209
*/
210210
public function confidential(): bool
211211
{
212-
return ! empty($this->secret);
212+
return ! empty($this->getAttributes()['secret'] ?? null);
213213
}
214214

215215
/**

0 commit comments

Comments
 (0)