BitzArt.Blazor.Cookies.Client
1.5.2
Prefix Reserved
dotnet add package BitzArt.Blazor.Cookies.Client --version 1.5.2
NuGet\Install-Package BitzArt.Blazor.Cookies.Client -Version 1.5.2
<PackageReference Include="BitzArt.Blazor.Cookies.Client" Version="1.5.2" />
<PackageVersion Include="BitzArt.Blazor.Cookies.Client" Version="1.5.2" />
<PackageReference Include="BitzArt.Blazor.Cookies.Client" />
paket add BitzArt.Blazor.Cookies.Client --version 1.5.2
#r "nuget: BitzArt.Blazor.Cookies.Client, 1.5.2"
#:package BitzArt.Blazor.Cookies.Client@1.5.2
#addin nuget:?package=BitzArt.Blazor.Cookies.Client&version=1.5.2
#tool nuget:?package=BitzArt.Blazor.Cookies.Client&version=1.5.2
Overview
BitzArt.Blazor.Cookies is a nuget package that simplifies working with browser cookies in Blazor applications.
🍪 We also have an authentication package for Blazor that simplifies implementing custom JWT-based authentication & authorization in your Blazor applications while using this package under the hood.
You can use cookies in your Blazor applications as a way to store user's unique information, such as preferences, settings, or session / authentication data.
- Built for dotnet 8+
- Supports all Blazor United render modes
- Supports Blazor prerendering
| Blazor Rendermode | Support |
|---|---|
| Static SSR | ✔️ |
| Interactive Server | ✔️ |
| Interactive WebAssembly | ✔️ |
| Interactive Auto | ✔️ |
Installation
- Install the following package in your Blazor Server project:
dotnet add package BitzArt.Blazor.Cookies.Server
- Add this line to your Server project
program.cs:
builder.AddBlazorCookies();
- Install the following package in your Blazor Client project:
dotnet add package BitzArt.Blazor.Cookies.Client
- Add this line to your Client project
program.cs:
builder.AddBlazorCookies();
Usage
- Inject
ICookieServicein any of your Services / Blazor Components - Use
ICookieServiceto interact with user's cookies.
License
| Product | Versions 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. |
-
net10.0
- BitzArt.Blazor.Cookies (>= 1.5.2)
- Microsoft.AspNetCore.Components.WebAssembly (>= 10.0.4)
-
net8.0
- BitzArt.Blazor.Cookies (>= 1.5.2)
- Microsoft.AspNetCore.Components.WebAssembly (>= 8.0.25)
-
net9.0
- BitzArt.Blazor.Cookies (>= 1.5.2)
- Microsoft.AspNetCore.Components.WebAssembly (>= 9.0.14)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on BitzArt.Blazor.Cookies.Client:
| Package | Downloads |
|---|---|
|
BitzArt.Blazor.Auth.Client
Client-side package for BitzArt.Blazor.Auth |
|
|
Nautilus.SecuredCookie.Client
A library to ensure cookies are encrypted with an encryption key stored on the server. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on BitzArt.Blazor.Cookies.Client:
| Repository | Stars |
|---|---|
|
BitzArt/Blazor.Auth
Blazor authentication package
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.2 | 799 | 3/11/2026 |
| 1.5.1 | 5,162 | 9/13/2025 |
| 1.5.0 | 10,408 | 5/27/2025 |
| 1.5.0-prerelease | 222 | 5/27/2025 |
| 1.4.0 | 640 | 5/22/2025 |
| 1.3.0 | 4,147 | 3/3/2025 |
| 1.2.0 | 7,916 | 1/9/2025 |
| 1.1.4 | 1,607 | 12/13/2024 |
| 1.1.3 | 1,922 | 12/4/2024 |
| 1.1.2 | 4,875 | 10/28/2024 |
| 1.1.1 | 207 | 10/28/2024 |
| 1.1.0 | 573 | 10/24/2024 |
| 1.0.5 | 191 | 10/24/2024 |
| 1.0.4 | 4,520 | 3/8/2024 |
| 1.0.3 | 244 | 3/8/2024 |
| 1.0.2 | 2,872 | 3/4/2024 |
| 1.0.1 | 228 | 3/4/2024 |
| 1.0.0 | 265 | 3/4/2024 |