MineSharp.Auth 0.1.10

There is a newer version of this package available.
See the version list below for details.
dotnet add package MineSharp.Auth --version 0.1.10                
NuGet\Install-Package MineSharp.Auth -Version 0.1.10                
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.10" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MineSharp.Auth --version 0.1.10                
#r "nuget: MineSharp.Auth, 0.1.10"                
#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.10

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

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 149 7/28/2024
0.1.10 125 7/20/2024
0.1.9 117 7/8/2024
0.1.8 159 5/18/2024
0.1.7 136 5/5/2024
0.1.6 135 5/4/2024
0.1.5 170 4/1/2024
0.1.4 188 1/26/2024
0.1.3 166 1/7/2024
0.1.2 162 12/30/2023
0.1.1 126 12/28/2023
0.1.0 144 12/28/2023