SoulFire TypeScript SDK 2.10.3
    Preparing search index...

    Type Alias DeviceCodeAuthResponse

    DeviceCodeAuthResponse: Message<"soulfire.v1.DeviceCodeAuthResponse"> & {
        data:
            | { case: "account"; value: MinecraftAccountProto }
            | { case: "deviceCode"; value: DeviceCode }
            | { case: undefined; value?: undefined };
    }

    Streaming response message for device code authentication. First sends the device code for user interaction, then sends the authenticated account once the user completes authorization.

    Type Declaration

    • data:
          | { case: "account"; value: MinecraftAccountProto }
          | { case: "deviceCode"; value: DeviceCode }
          | { case: undefined; value?: undefined }

      from oneof soulfire.v1.DeviceCodeAuthResponse.data

    from message soulfire.v1.DeviceCodeAuthResponse