lyceris 1.1.3

An open source Minecraft launcher library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

pub mod microsoft;

/// Represents the authentication method used for logging into Minecraft.
#[derive(Serialize, Deserialize, Clone)]
pub enum AuthMethod {
    /// Represents offline authentication with a username.
    Offline { username: String, uuid: Option<String> },
    /// Represents Microsoft account authentication.
    Microsoft {
        username: String,
        xuid: String,
        uuid: String,
        access_token: String,
        refresh_token: String
    },
}