MineSharp.Auth 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MineSharp.Auth --version 0.1.0                
NuGet\Install-Package MineSharp.Auth -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MineSharp.Auth" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MineSharp.Auth --version 0.1.0                
#r "nuget: MineSharp.Auth, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MineSharp.Auth as a Cake Addin
#addin nuget:?package=MineSharp.Auth&version=0.1.0

// Install MineSharp.Auth as a Cake Tool
#tool nuget:?package=MineSharp.Auth&version=0.1.0                

MineSharp.Auth

Provides functionality to obtain a valid Minecraft session, used to connect to online Minecraft Servers.

Example:

Create an offline session:
    var session = Session.OfflineSession("MyUsername");
Create an online session:
    var session = await MicrosoftAuth.Login("microsoft_account@email.com");

When you first login, the use has to authenticate using the browser. By default the browser will automatically open and the user code required is printed to the console. You can override this behaviour by passing a custom DeviceCodeHandler.

The Access token and refresh token are cached and if possible, the session is refreshed. In that case, the user doesn't have to login through the browser again.

Credits

Thanks to

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MineSharp.Auth:

Package Downloads
MineSharp.Protocol

Implementation of the Minecraft protocol.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.11 151 7/28/2024
0.1.10 126 7/20/2024
0.1.9 118 7/8/2024
0.1.8 160 5/18/2024
0.1.7 137 5/5/2024
0.1.6 136 5/4/2024
0.1.5 171 4/1/2024
0.1.4 189 1/26/2024
0.1.3 167 1/7/2024
0.1.2 163 12/30/2023
0.1.1 127 12/28/2023
0.1.0 145 12/28/2023