We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52aaef0 commit 83f69b5Copy full SHA for 83f69b5
src/Firebase/Auth/ApiClient.php
@@ -62,7 +62,7 @@ public function setCustomUserClaims(string $uid, array $claims): ResponseInterfa
62
{
63
return $this->requestApi('https://identitytoolkit.googleapis.com/v1/accounts:update', [
64
'localId' => $uid,
65
- 'customAttributes' => JSON::encode($claims, JSON_FORCE_OBJECT),
+ 'customAttributes' => JSON::encode((object) $claims),
66
]);
67
}
68
0 commit comments