Skip to content

Commit ca50399

Browse files
committed
Fixed Facebook authentication (#217)
1 parent 355d5b6 commit ca50399

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/xyz/gianlu/librespot/core/FacebookAuthenticator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private void authData(@NotNull String json) {
8080

8181
JsonObject data = obj.getAsJsonObject("credentials");
8282
credentials = Authentication.LoginCredentials.newBuilder()
83-
.setUsername(data.get("authUsername").getAsString())
83+
.setUsername(data.get("username").getAsString())
8484
.setTyp(Authentication.AuthenticationType.forNumber(data.get("auth_type").getAsInt()))
8585
.setAuthData(ByteString.copyFrom(Base64.getDecoder().decode(data.get("encoded_auth_blob").getAsString())))
8686
.build();

0 commit comments

Comments
 (0)