Skip to content

Commit

Permalink
Added Bedrock XBOX Live login
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Jul 13, 2024
1 parent 36060fb commit dd948c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/net/raphimc/minecraftauth/MinecraftAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ public class MinecraftAuth {
.deviceCode()
.msaTokenStep, "1.20.80", 671, "Windows Desktop Build (Win32)(x64)");

@ApiStatus.Experimental
public static final AbstractStep<?, ? extends StepXblXstsToken.XblXsts<?>> BEDROCK_XBL_DEVICE_CODE_LOGIN = builder()
.withClientId(MicrosoftConstants.BEDROCK_ANDROID_TITLE_ID).withScope(MicrosoftConstants.SCOPE_TITLE_AUTH)
.deviceCode()
.withDeviceToken("Android")
.sisuTitleAuthentication(MicrosoftConstants.XBL_XSTS_RELYING_PARTY)
.xblXstsTokenStep;

public static MsaTokenBuilder builder() {
return new MsaTokenBuilder();
}
Expand Down

0 comments on commit dd948c4

Please sign in to comment.