BitzArt.Blazor.Cookies
1.5.0
Prefix Reserved
dotnet add package BitzArt.Blazor.Cookies --version 1.5.0
NuGet\Install-Package BitzArt.Blazor.Cookies -Version 1.5.0
<PackageReference Include="BitzArt.Blazor.Cookies" Version="1.5.0" />
<PackageVersion Include="BitzArt.Blazor.Cookies" Version="1.5.0" />
<PackageReference Include="BitzArt.Blazor.Cookies" />
paket add BitzArt.Blazor.Cookies --version 1.5.0
#r "nuget: BitzArt.Blazor.Cookies, 1.5.0"
#:package BitzArt.Blazor.Cookies@1.5.0
#addin nuget:?package=BitzArt.Blazor.Cookies&version=1.5.0
#tool nuget:?package=BitzArt.Blazor.Cookies&version=1.5.0
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
ICookieService
in any of your Services / Blazor Components - Use
ICookieService
to 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 was computed. 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. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on BitzArt.Blazor.Cookies:
Package | Downloads |
---|---|
BitzArt.Blazor.Cookies.Server
BitzArt.Blazor.Cookies - Server package |
|
BitzArt.Blazor.Cookies.Client
BitzArt.Blazor.Cookies - Client package |
|
BitzArt.Blazor.Auth
A tearless authentication library for Blazor United |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on BitzArt.Blazor.Cookies:
Repository | Stars |
---|---|
BitzArt/Blazor.Auth
Blazor authentication package
|
Version | Downloads | Last Updated |
---|---|---|
1.5.0 | 3,950 | 5/27/2025 |
1.5.0-prerelease | 186 | 5/27/2025 |
1.4.0 | 944 | 5/22/2025 |
1.3.0 | 4,942 | 3/3/2025 |
1.2.0 | 8,153 | 1/9/2025 |
1.1.4 | 2,188 | 12/13/2024 |
1.1.3 | 1,835 | 12/4/2024 |
1.1.2 | 6,427 | 10/28/2024 |
1.1.1 | 135 | 10/28/2024 |
1.1.0 | 717 | 10/24/2024 |
1.0.5 | 118 | 10/24/2024 |
1.0.4 | 7,994 | 3/8/2024 |
1.0.3 | 168 | 3/8/2024 |
1.0.2 | 4,009 | 3/4/2024 |
1.0.1 | 173 | 3/4/2024 |
1.0.0 | 416 | 3/4/2024 |
0.0.2-Prerelease | 156 | 3/2/2024 |
0.0.1-Prerelease | 95 | 3/2/2024 |