BitzArt.Blazor.Cookies 1.0.4

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package BitzArt.Blazor.Cookies --version 1.0.4
NuGet\Install-Package BitzArt.Blazor.Cookies -Version 1.0.4
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.Cookies" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BitzArt.Blazor.Cookies --version 1.0.4
#r "nuget: BitzArt.Blazor.Cookies, 1.0.4"
#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 BitzArt.Blazor.Cookies as a Cake Addin
#addin nuget:?package=BitzArt.Blazor.Cookies&version=1.0.4

// Install BitzArt.Blazor.Cookies as a Cake Tool
#tool nuget:?package=BitzArt.Blazor.Cookies&version=1.0.4

Tests

NuGet version NuGet downloads

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

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on BitzArt.Blazor.Cookies:

Package Downloads
BitzArt.Blazor.Cookies.Server The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

BitzArt.Blazor.Cookies - Server package

BitzArt.Blazor.Auth The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A tearless authentication library for Blazor United

BitzArt.Blazor.Cookies.Client The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

BitzArt.Blazor.Cookies - Client package

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 668 3/8/2024
1.0.3 102 3/8/2024
1.0.2 1,014 3/4/2024
1.0.1 108 3/4/2024
1.0.0 111 3/4/2024
0.0.2-Prerelease 102 3/2/2024
0.0.1-Prerelease 62 3/2/2024