Skip to content

Commit 437bd9e

Browse files
committed
Updated response check
1 parent 2341dd0 commit 437bd9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseAdmin/FirebaseAdmin/Auth/FirebaseUserManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public async Task UpdateUserAsync(
7474
const string updatePath = "accounts:update";
7575
var response = await this.PostAndDeserializeAsync<JObject>(
7676
updatePath, user, cancellationToken).ConfigureAwait(false);
77-
if (response["localId"]?.Value<string>() != user.Uid)
77+
if (user.Uid != (string)response["localId"])
7878
{
7979
throw new FirebaseException($"Failed to update user: {user.Uid}");
8080
}

0 commit comments

Comments
 (0)