Skip to content

Conversation

@Eveeifyeve
Copy link
Member

Featuring:

Minecraft-Launching & Builder Patten usage.

New AuthBuilder

The new authbuilder support both device code & oauth it support refreshing and more.

Example:

use minecraft-essentials::{AuthentifcationBuilder, AuthType};
use std::env;

pub fn main() {
    let client_id = "ClientID here";
    let client_secret = env::var("Client_Secret").expect("Expected Client Secret.");
    let mut builder = AuthenticationBuilder::builder();
    builder
        .of_type(AuthType::\* type*\)
        .client_id(&client_id)
        .client_secret(&client_secret) // Only Required for ouath
        .port(Some(8000)); // Optional for ouath but defaults to port 8000
    println!("Info: {:?}", builder.get_info().await.unwrap()) // users info 
    
    println!("Authentifcation Final Info: {:?}", builder.launch.await.unwrap()) // for your launcher.
}

Depreciation Notice: Both OAuth & Device Code Will be deprecated please move to AuthBuilder it will be removed at 0.2.14

@Eveeifyeve
Copy link
Member Author

Working on launching.

@github-actions
Copy link

This pull request has become stale and will be closed automatically within a period of time. Sorry about that.

@github-actions github-actions bot added the Stale Either the Pr/Issue hasn't been active it will go stale label Jul 22, 2025
@Eveeifyeve
Copy link
Member Author

Still Working on launching.

@github-actions github-actions bot removed the Stale Either the Pr/Issue hasn't been active it will go stale label Jul 23, 2025
@github-actions
Copy link

This pull request has become stale and will be closed automatically within a period of time. Sorry about that.

@github-actions github-actions bot added the Stale Either the Pr/Issue hasn't been active it will go stale label Jul 30, 2025
@Eveeifyeve Eveeifyeve removed the Stale Either the Pr/Issue hasn't been active it will go stale label Jul 30, 2025
@github-actions
Copy link

github-actions bot commented Aug 7, 2025

This pull request has become stale and will be closed automatically within a period of time. Sorry about that.

@github-actions github-actions bot added the Stale Either the Pr/Issue hasn't been active it will go stale label Aug 7, 2025
@github-actions
Copy link

This pr has been closed automatically

@github-actions github-actions bot closed this Aug 22, 2025
@Eveeifyeve
Copy link
Member Author

Eveeifyeve commented Aug 22, 2025

I will reopen this pr, when it's ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Either the Pr/Issue hasn't been active it will go stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants