BitzArt.Blazor.Auth.Server 2.1.1

Prefix Reserved
dotnet add package BitzArt.Blazor.Auth.Server --version 2.1.1
                    
NuGet\Install-Package BitzArt.Blazor.Auth.Server -Version 2.1.1
                    
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="BitzArt.Blazor.Auth.Server" Version="2.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BitzArt.Blazor.Auth.Server" Version="2.1.1" />
                    
Directory.Packages.props
<PackageReference Include="BitzArt.Blazor.Auth.Server" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BitzArt.Blazor.Auth.Server --version 2.1.1
                    
#r "nuget: BitzArt.Blazor.Auth.Server, 2.1.1"
                    
#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.
#:package BitzArt.Blazor.Auth.Server@2.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BitzArt.Blazor.Auth.Server&version=2.1.1
                    
Install as a Cake Addin
#tool nuget:?package=BitzArt.Blazor.Auth.Server&version=2.1.1
                    
Install as a Cake Tool

Tests

NuGet version NuGet downloads

Overview

Blazor.Auth is a developer-friendly JWT & Cookie authentication library for Blazor. Built for .NET 8+ and designed to make Blazor authentication less painful, more secure, and (dare we say) enjoyable.

🍪 The package uses Blazor.Cookies for persisting user authentication state via browser cookies.

This package is for developers who want to:

  • Add JWT authentication to Blazor apps (Server, WebAssembly, United)
  • Use secure cookie authentication in .NET 8+ Blazor projects
  • Implement authentication & authorization in public-facing Blazor sites, SaaS dashboards, or internal enterprise Blazor apps
  • Implement custom login, logout, and token refresh flows
  • Leverage Blazor's built-in authorization capabilities (such as [AuthorizeView] and [CascadingAuthenticationState])

Why Blazor.Auth?

Because you shouldn't have to fight your framework just to log users in. This library skips the boilerplate, handles Blazor's quirks (SSR, WASM, Server, you name it), and keeps your sanity intact. Built by developers who have already made all the mistakes—so you don't have to.

Install via NuGet

Server project:

dotnet add package BitzArt.Blazor.Auth.Server

Client project:

dotnet add package BitzArt.Blazor.Auth.Client

Quickstart

  1. Add the NuGet package(s) to your Blazor project (see above).
  2. Configure authentication in your Program.cs (see docs).
  3. Use your favorite Blazor auth patterns.
  4. Enjoy secure, cookie-based authentication without the headaches.

Resources

Find guides, API docs, and examples in the documentation.

documentation

License

License

Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.1 1,134 3/11/2026
2.1.0 7,670 5/27/2025
2.1.0-prerelease4 247 5/27/2025
2.1.0-prerelease3 229 5/22/2025
2.1.0-prerelease2 212 5/19/2025
2.1.0-prerelease 203 5/19/2025
2.0.7 5,018 2/27/2025
2.0.6 341 2/27/2025
2.0.5 826 2/20/2025
2.0.4 443 2/8/2025
2.0.3 561 2/5/2025
2.0.2 373 2/5/2025
2.0.1 374 2/5/2025
2.0.0 368 2/5/2025
1.2.2 981 1/28/2025
1.2.1 538 1/22/2025
1.2.0 718 12/29/2024
Loading failed