MineSharp.Auth 0.1.5

dotnet add package MineSharp.Auth --version 0.1.5
NuGet\Install-Package MineSharp.Auth -Version 0.1.5
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.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MineSharp.Auth --version 0.1.5
#r "nuget: MineSharp.Auth, 0.1.5"
#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.5

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

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.5 120 4/1/2024
0.1.4 146 1/26/2024
0.1.3 127 1/7/2024
0.1.2 124 12/30/2023
0.1.1 88 12/28/2023
0.1.0 105 12/28/2023