Skip to content

Commit b25c733

Browse files
authored
Fix VRChatLoginResult to indicate successful login
1 parent 4e8732c commit b25c733

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wrapper/VRChat.API/Client/VRChat.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public async Task<VRChatLoginResult> TryLoginAsync(CancellationToken ct = defaul
314314
return new VRChatLoginResult(false, exception);
315315
}
316316

317-
return new VRChatLoginResult(user == null, null);
317+
return new VRChatLoginResult(user != null, null);
318318
}
319319

320320
public async Task<CurrentUser> LoginAsync(CancellationToken ct = default)
@@ -384,4 +384,4 @@ public async Task<CurrentUser> LoginWithExternalCodeAsync(Func<List<string>, ITw
384384
return response.StatusCode == HttpStatusCode.OK ? user : null;
385385
}
386386
}
387-
}
387+
}

0 commit comments

Comments
 (0)