microshaft 1.0.1 copy "microshaft: ^1.0.1" to clipboard
microshaft: ^1.0.1 copied to clipboard

Get logged in to a minecraft account quickly without all of the boilerplate of dancing with microsoft, xbox and mojang servers, maintaining a cache for expiring tokens and whatnot.

example/microshaft_example.dart

import 'package:microshaft/microshaft.dart';
import 'package:microshaft/src/model/shafted.dart';

void main() {
  MicroshaftClient(storage: FileStorage.load("tokens.dat"))
      .authenticate((url, code) {
    print("Go to $url");
    print("Enter: $code");
  }).then((Shafted value) {
    // THE MOJANG TOKEN
    value.mojangToken;

    // THE MINECRAFT USERNAME
    value.profileName;

    // THE REAL UUID
    value.uuid;
  });
}
1
likes
130
points
111
downloads

Documentation

API reference

Publisher

verified publisherarcane.art

Weekly Downloads

Get logged in to a minecraft account quickly without all of the boilerplate of dancing with microsoft, xbox and mojang servers, maintaining a cache for expiring tokens and whatnot.

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

Dependencies

http, json_annotation, json_serializable

More

Packages that depend on microshaft