getMinecraftProfileWithToken method
Gets the Minecraft profile using the provided Minecraft token
This method fetches the Minecraft profile using the provided Minecraft token. The token must be valid and associated with a Minecraft account.
@param minecraftToken The Minecraft access token to use for the profile request @return A Future that resolves to the Minecraft account profile, or null if the operation failed
Implementation
Future<MinecraftAccountProfile?> getMinecraftProfileWithToken(
String minecraftToken,
) async {
try {
return await _minecraftAuthService.getProfileWithToken(minecraftToken);
} catch (e) {
debugPrint('Failed to get Minecraft profile with token: $e');
return null;
}
}